diff options
author | cel 🌸 <cel@blos.sm> | 2024-01-31 18:55:36 +0000 |
---|---|---|
committer | cel 🌸 <cel@blos.sm> | 2024-01-31 18:55:36 +0000 |
commit | d1bfe2eb0ba8836d4eef4ca5dd6e20611dc3a8c0 (patch) | |
tree | c54999785bf7ae865ca571a475da222e9e376873 /templates | |
parent | b78d026c242e8d95e611e050afd5b72eb562d56d (diff) | |
download | blossom-d1bfe2eb0ba8836d4eef4ca5dd6e20611dc3a8c0.tar.gz blossom-d1bfe2eb0ba8836d4eef4ca5dd6e20611dc3a8c0.tar.bz2 blossom-d1bfe2eb0ba8836d4eef4ca5dd6e20611dc3a8c0.zip |
changed Post tags() to return a Vec<&str>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/blogpost-panel.html | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/templates/blogpost-panel.html b/templates/blogpost-panel.html index 6375012..45117b6 100644 --- a/templates/blogpost-panel.html +++ b/templates/blogpost-panel.html @@ -1,8 +1,9 @@ <div class="panel content blogpost"> <h1 class="title">{{ blogpost.subject().unwrap_or("untitled") }}</h1> <h2 class="created-at">{{ blogpost.published_at() }} <a href="/blog/{{ blogpost.file_name() }}">permalink</a></h2> - <div class="tags">{% for tag in blogpost.tags().clone() %}<a - class="tag {% if filter_tags.contains(tag) %}active{% endif %}" href="/blog?filter={{ tag }}">{{ tag }}</a>{% + <div class="tags">{% for tag in blogpost.tags() %}{% let tag = tag.to_string() %}<a + class="tag {% if filter_tags.contains(tag) %}active{% endif %}" href="/blog?filter={{ tag }}">{{ tag + }}</a>{% endfor %}</div> <div class="blogpost-content"> {{ blogpost.content()|safe }} |