Date: Tue, 14 Dec 2010 15:05:43 +0000
Subject: [PATCH 0002/2711] Add the tag list to the articles, if any.
---
pelican/themes/notmyidea/templates/article.html | 5 +++--
pelican/themes/notmyidea/templates/index.html | 2 ++
pelican/themes/notmyidea/templates/taglist.html | 2 ++
3 files changed, 7 insertions(+), 2 deletions(-)
create mode 100644 pelican/themes/notmyidea/templates/taglist.html
diff --git a/pelican/themes/notmyidea/templates/article.html b/pelican/themes/notmyidea/templates/article.html
index 86b63231..8b5e5bae 100644
--- a/pelican/themes/notmyidea/templates/article.html
+++ b/pelican/themes/notmyidea/templates/article.html
@@ -16,7 +16,8 @@
By {{ article.author }}
{% endif %}
- In {{ article.category }}. {% if PDF_PROCESSOR %}get the pdf{% endif %}
+ In {{ article.category }}.
+ {% include 'taglist.html' %}
{{ article.content }}
@@ -37,4 +38,4 @@
-{% endblock %}
\ No newline at end of file
+{% endblock %}
diff --git a/pelican/themes/notmyidea/templates/index.html b/pelican/themes/notmyidea/templates/index.html
index d01e9928..2f61d6d5 100644
--- a/pelican/themes/notmyidea/templates/index.html
+++ b/pelican/themes/notmyidea/templates/index.html
@@ -18,6 +18,7 @@
{% endif %}
In {{ article.category }}. {% if PDF_PROCESSOR %}get the pdf{% endif %}
+ {% include 'taglist.html' %}
{{ article.content }}
@@ -43,6 +44,7 @@
By {{ article.author }}
In {{ article.category }}
+ {% include 'taglist.html' %}
{% if PDF_PROCESSOR %}pdf{% endif %}
{{ article.summary }}
diff --git a/pelican/themes/notmyidea/templates/taglist.html b/pelican/themes/notmyidea/templates/taglist.html
new file mode 100644
index 00000000..4259077a
--- /dev/null
+++ b/pelican/themes/notmyidea/templates/taglist.html
@@ -0,0 +1,2 @@
+{% if article.tags %}tags: {% for tag in article.tags %}{{ tag }}{% endfor %}
{% endif %}
+{% if PDF_PROCESSOR %}get the pdf{% endif %}