work.html 948 B

12345678910111213141516171819202122232425262728
  1. {% extends "_base.html" %}
  2. {% set work_selected = True %}
  3. {% set all_selected = False if no_all_selected else True %}
  4. {% set path = "work/" + (work_path or "all") %}
  5. {% set sort_images = True %}
  6. {% set expand_dialog = True %}
  7. {% block main %}
  8. {% for image in (sorted(images(path), reverse=True) if sort_images else images(path)) %}
  9. <figure class="{{ 'clickable-fig' if expand_dialog else ''}}">
  10. <img class="tile" src="{{ (image.main or image.filenames[0]) | static }}" loading="lazy"
  11. alt="{{ image.category }}: {{ image.name }} ({{ image.year }})">
  12. <figcaption class="hbox">
  13. <div class="caption">
  14. <h1>{{ image.name }} / <time>{{ image.year }}</time></h1>
  15. {{ image.category | lang }}
  16. </div>
  17. </figcaption>
  18. <datalist>
  19. {% for variant in image.filenames %}
  20. <option value="{{ variant | static }}" label="{{ image.category }}: {{ image.name }} ({{ image.year }})" />
  21. {% endfor %}
  22. </datalist>
  23. </figure>
  24. {% endfor %}
  25. {% endblock %}