metanohi/site/projects/alart/images/index.org

20 lines
436 B
Org Mode

#+title: alart images
#&summary
Art from alart
#&
#+license: cc0
#&fullpage
* alart images
Click on the images to go to their SVG versions.
#++exec
#+BEGIN_SRC python
root = misc.macrog('pathdir')
for f in os.listdir(root):
if os.path.isfile(os.path.join(root, f)) and f.endswith('.png'):
base = f[:-4]
print("<a href='{base}.svg'><img src='{base}.png' alt='{base}' /></a>".format(base=base))
#+END_SRC