diff options
| author | WriterV2 <primary-v2@protonmail.com> | 2022-11-05 11:44:58 +0100 |
|---|---|---|
| committer | WriterV2 <primary-v2@protonmail.com> | 2022-11-05 11:44:58 +0100 |
| commit | 69336e9c603608e27cc4458d664839f038233a00 (patch) | |
| tree | 954e1d82c44385e4ec3c54a22c71511c94b6069f /templates | |
| parent | fefb0e01c42c74a98aafed4ebf99e2eebed0a2c4 (diff) | |
Add resizing for work card images
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/stories.html | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/templates/stories.html b/templates/stories.html index 4c1267b..481a431 100644 --- a/templates/stories.html +++ b/templates/stories.html @@ -1,19 +1,17 @@ {% extends "base.html" %} {% block title %}Stories{% endblock title %} {% block content %} -{% for work in works %} -<a href="{{work.path_to_document}}" style="background-image: url('{{work.path_to_image}}');" class="work-card" download> - <!--<article class="story-section" style="background-image: url('{{work.path_to_image}}');">--> - <div class="title-and-description"> - <h3>{{work.title}}</h3> - <p>{{work.description}}</p> - </div> - <div class="info"> - <span>{{work.number_of_pages}} Pages</span> - <span>{{work.language}}</span> - <span>{{work.story_type}}</span> - </div> - <!--</article>--> -</a> -{% endfor %} + {% for work in works %} + <a href="{{work.path_to_document}}" style="background-image: url('./images/workcardimages/{{work.path_to_image}}');" class="work-card" download> + <div class="title-and-description"> + <h3>{{work.title}}</h3> + <p>{{work.description}}</p> + </div> + <div class="info"> + <span>{{work.number_of_pages}} Pages</span> + <span>{{work.language}}</span> + <span>{{work.story_type}}</span> + </div> + </a> + {% endfor %} {% endblock content %} |
