work.html 957 B

123456789101112131415161718192021222324252627
  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" alt="{{ image.category }}: {{ image.name }} ({{ image.year }})">
  11. <figcaption class="hbox">
  12. <div class="caption">
  13. <h1>{{ image.name }} / <time>{{ image.year }}</time></h1>
  14. {{ image.category | lang }}
  15. </div>
  16. </figcaption>
  17. <datalist>
  18. {% for variant in image.filenames %}
  19. <option value="{{ variant | static }}" label="{{ image.category }}: {{ image.name }} ({{ image.year }})"/>
  20. {% endfor %}
  21. </datalist>
  22. </figure>
  23. {% endfor %}
  24. {% endblock %}