Skip to content

Commit

Permalink
Add tags to bookmark details page
Browse files Browse the repository at this point in the history
Marked up with p-category tags so they'll share as hashtags.
  • Loading branch information
jamesvandyne committed Nov 27, 2023
1 parent eb6849d commit 52fe279
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions apps/templates/public/entry/bookmark_item.html
Expand Up @@ -27,6 +27,14 @@ <h1 class="p-name text-xl">
<main class="e-content mb-2 pt-2 content max-w-prose">
<blockquote>{{ t_bookmark.quote|linebreaksbr }}</blockquote>
{{ t_entry.e_content|safe }}
{% if t_post.tags.names %}
<ol class="inline help-text">
<li class="inline">Tagged with </li>
{% for tag in t_post.tags.names %}
<li class="inline mr-1"><a href="{% url "public:bookmarks" %}?tag={{ tag }}" class="underline p-category">{{ tag }}</a></li>
{% endfor %}
</ol>
{% endif %}
</main>
{% include "public/fragments/post_footer.html" %}
</div>
Expand Down

0 comments on commit 52fe279

Please sign in to comment.