forked from github/pelican
Add the tag list to the articles, if any.
This commit is contained in:
parent
d93557fe35
commit
dd97b35029
3 changed files with 7 additions and 2 deletions
|
|
@ -16,7 +16,8 @@
|
|||
By <a class="url fn" href="#">{{ article.author }}</a>
|
||||
</address>
|
||||
{% endif %}
|
||||
<p>In <a href="{{ SITEURL }}/category/{{ article.category }}.html">{{ article.category }}</a>. {% if PDF_PROCESSOR %}<a href="{{ SITEURL }}/pdf/{{ article.slug }}.pdf">get the pdf</a>{% endif %}</p>
|
||||
<p>In <a href="{{ SITEURL }}/category/{{ article.category }}.html">{{ article.category }}</a>.
|
||||
{% include 'taglist.html' %}
|
||||
</footer><!-- /.post-info -->
|
||||
{{ article.content }}
|
||||
</div><!-- /.entry-content -->
|
||||
|
|
@ -37,4 +38,4 @@
|
|||
|
||||
</article>
|
||||
</section>
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@
|
|||
</address>
|
||||
{% endif %}
|
||||
<p>In <a href="{{ SITEURL }}/category/{{ article.category }}.html">{{ article.category }}</a>. {% if PDF_PROCESSOR %}<a href="{{ SITEURL }}/pdf/{{ article.slug }}.pdf">get the pdf</a>{% endif %}</p>
|
||||
{% include 'taglist.html' %}
|
||||
</footer><!-- /.post-info -->
|
||||
{{ article.content }}
|
||||
</article></aside><!-- /#featured -->
|
||||
|
|
@ -43,6 +44,7 @@
|
|||
By <a class="url fn" href="#">{{ article.author }}</a>
|
||||
</address>
|
||||
<p> In <a href="{{ SITEURL }}/category/{{ article.category }}.html">{{ article.category }}</a></p>
|
||||
{% include 'taglist.html' %}
|
||||
<p>{% if PDF_PROCESSOR %}<a href="{{ SITEURL }}/pdf/{{ article.slug }}.pdf">pdf</a>{% endif %}</p>
|
||||
</footer><!-- /.post-info -->
|
||||
{{ article.summary }}
|
||||
|
|
|
|||
2
pelican/themes/notmyidea/templates/taglist.html
Normal file
2
pelican/themes/notmyidea/templates/taglist.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
{% if article.tags %}<p>tags: {% for tag in article.tags %}<a href="{{ SITEURL }}/tag/{{ tag }}.html">{{ tag }}</a>{% endfor %}</p>{% endif %}
|
||||
{% if PDF_PROCESSOR %}<a href="{{ SITEURL }}/pdf/{{ article.slug }}.pdf">get the pdf</a>{% endif %}</p>
|
||||
Loading…
Add table
Add a link
Reference in a new issue