diff options
Diffstat (limited to '')
| -rw-r--r-- | templates/home.html | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/templates/home.html b/templates/home.html index 3e34cae..ba6615f 100644 --- a/templates/home.html +++ b/templates/home.html @@ -28,8 +28,18 @@ {% block content %} -<div class="panel content"> - {{ locale.text("welcome").unwrap()|safe }} +{% for post in feed %} +{% match post %} +{% when HomeFeedItem::Blogpost(blogpost) %} +{% include "blogpost-panel.html" %} +{% when HomeFeedItem::Poem(poem) %} +{% include "poem-panel.html" %} +{% endmatch %} +{% endfor %} + +<div class="home-feed-footer"> + <div class="panel"><a href="/blog">More blogposts...</a></div> + <div class="panel"><a href="/poetry">More poetry...</a></div> </div> {% endblock content %} @@ -38,11 +48,16 @@ <aside> - <div class="panel" style="background-color: #b52f6a; z-index: -1; font-family: 'Terminal Grotesque'; font-size: 2em"> - {{ locale.text("latest-update").unwrap() }}</div> {% include "latestposts.html" %} {% include "random-poem.html" %} + {% match visits %} + {% when Some(visit_count) %} + <div class="panel" + style="color: #e9cdcf; background-color: #b52f6a; z-index: -1; font-size: 2em; width: fit-content;"> + {{ visit_count }}{{ locale.text("visits").unwrap() }}</div> + {% when None %} + {% endmatch %} </aside> -{% endblock aside %} +{% endblock aside %}
\ No newline at end of file |
