Changeset - bea2e1110880
[Not reviewed]
0 1 0
Bradley Kuhn (bkuhn) - 6 years ago 2017-09-13 16:42:08
bkuhn@ebb.org
Blog: add permalink on partial entries.

I noticed there is no link on the blog pages (other than on the front
page) to get the link to the blog post itself. This adds a permalink at
the end near the tags.

I considered making the title itself a link, which is what's done on the
frontpage, but I figured this might look nicer. Feel free to change
this if you're looking this commit message and feel I didn't DTRT
here. :)
1 file changed with 3 insertions and 0 deletions:
0 comments (0 inline, 0 general)
www/conservancy/templates/blog/entry_partial.html
Show inline comments
...
 
@@ -36,6 +36,9 @@ This partial accepts these optional parameters:
 
{% if show|default:"body" != "body" %}
 
<p><a class="continued" href="{{ entry.get_absolute_url }}">Read More&hellip;</a></p>
 
{% endif %}
 
{% if show != "summary"}
 
<p class="permalink"><a href="{{ entry.get_absolute_url }}">[permalink]</a></p>
 
{% endif %}
 

	
 
{% if show != "summary" and entry.tags.exists %}
 
<p class="blog-tags">Tags:
0 comments (0 inline, 0 general)