A lot of projects ported from the old metanohi site.
This commit is contained in:
19
site/projects/alart/images/index.org
Normal file
19
site/projects/alart/images/index.org
Normal file
@@ -0,0 +1,19 @@
|
||||
#+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
|
||||
Reference in New Issue
Block a user