work.html 976 B

123456789101112131415161718192021222324252627282930
  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 style %}
  8. {% endblock %}
  9. {% block main %}
  10. {% for image in (sorted(images(path), reverse=True) if sort_images else images(path)) %}
  11. <figure class="{{ 'clickable-fig' if expand_dialog else ''}}">
  12. <img class="tile" src="{{ (image.main or image.filenames[0]) | static }}" alt="{{ image.category }}: {{ image.name }} ({{ image.year }})">
  13. <figcaption class="hbox">
  14. <div class="caption">
  15. <h1>{{ image.name }} / <time>{{ image.year }}</time></h1>
  16. {{ image.category | lang }}
  17. </div>
  18. </figcaption>
  19. <datalist>
  20. {% for variant in image.filenames %}
  21. <option value="{{ variant | static }}" label="{{ image.category }}: {{ image.name }} ({{ image.year }})"/>
  22. {% endfor %}
  23. </datalist>
  24. </figure>
  25. {% endfor %}
  26. {% endblock %}