Skip to content

Commit

Permalink
Add tags to quotation, blogmark and entries in the atom feeds (#466)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw authored Jul 11, 2024
1 parent be50da8 commit d35250c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions templates/feeds/blogmark.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@
{% if obj.via_title %}
<p>Via <a href="{{ obj.via_url }}">{{ obj.via_title }}</a></p>
{% endif %}
{% if obj.tags.count %}
<p>Tags: {% for tag in obj.tags.all %}<a href="https://simonwillison.net/tags/{{ tag.tag }}">{{ tag.tag }}</a>{% if not forloop.last %}, {% endif %}{% endfor %}</p>
{% endif %}
3 changes: 3 additions & 0 deletions templates/feeds/everything.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{% if obj.is_entry %}
{{ obj.body|safe }}
{% if obj.tags.count %}
<p>Tags: {% for tag in obj.tags.all %}<a href="https://simonwillison.net/tags/{{ tag.tag }}">{{ tag.tag }}</a>{% if not forloop.last %}, {% endif %}{% endfor %}</p>
{% endif %}
{% elif obj.is_blogmark %}
{% include "feeds/blogmark.html" %}
{% elif obj.is_quotation %}
Expand Down
5 changes: 4 additions & 1 deletion templates/feeds/quotation.html
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
<blockquote{% if obj.source_url %} cite="{{ obj.source_url }}"{% endif %}>{{ obj.body }}</blockquote><p class="cite">&mdash; {% if obj.source_url %}<a href="{{ obj.source_url }}">{{ obj.source }}</a>{% else %}{{ obj.source }}{% endif %}
<blockquote{% if obj.source_url %} cite="{{ obj.source_url }}"{% endif %}>{{ obj.body }}</blockquote><p class="cite">&mdash; {% if obj.source_url %}<a href="{{ obj.source_url }}">{{ obj.source }}</a>{% else %}{{ obj.source }}{% endif %}</p>
{% if obj.tags.count %}
<p>Tags: {% for tag in obj.tags.all %}<a href="https://simonwillison.net/tags/{{ tag.tag }}">{{ tag.tag }}</a>{% if not forloop.last %}, {% endif %}{% endfor %}</p>
{% endif %}

0 comments on commit d35250c

Please sign in to comment.