aboutsummaryrefslogtreecommitdiffstats
path: root/notmyidea-cms
diff options
context:
space:
mode:
authorFELD Boris <lothiraldan@gmail.com>2011-04-08 13:48:05 +0200
committerFELD Boris <lothiraldan@gmail.com>2011-04-08 13:48:05 +0200
commit69c1767f4468f25a50b9c44386adfa16104b670c (patch)
tree817010192c4c38cf93a6c688ec10b70aa9f56144 /notmyidea-cms
parent3e04e093dd7bde61f27213045091463a0addc356 (diff)
downloadpelican-themes-69c1767f4468f25a50b9c44386adfa16104b670c.zip
pelican-themes-69c1767f4468f25a50b9c44386adfa16104b670c.tar.gz
pelican-themes-69c1767f4468f25a50b9c44386adfa16104b670c.tar.bz2
[NOTMYIDEA-CMS]Move article infos into a separate template like the default theme
Diffstat (limited to 'notmyidea-cms')
-rw-r--r--notmyidea-cms/templates/article.html14
-rw-r--r--notmyidea-cms/templates/article_infos.html14
-rw-r--r--notmyidea-cms/templates/index.html28
3 files changed, 17 insertions, 39 deletions
diff --git a/notmyidea-cms/templates/article.html b/notmyidea-cms/templates/article.html
index aaadfcd..79ad679 100644
--- a/notmyidea-cms/templates/article.html
+++ b/notmyidea-cms/templates/article.html
@@ -7,19 +7,7 @@
rel="bookmark" title="Permalink to {{ article.title }}">{{ article.title
}}</a></h1> {% include 'twitter.html' %} </header>
<div class="entry-content">
- <footer class="post-info">
- <abbr class="published" title="{{ article.date.isoformat() }}">
- {{ article.date.strftime('%a %d %B %Y') }}
- </abbr>
- {% if article.author %}
- <address class="vcard author">
- By <a class="url fn" href="#">{{ article.author }}</a>
- </address>
- {% endif %}
- <p>In <a href="{{ SITEURL }}/category/{{ article.category }}.html">{{ article.category }}</a>.
- {% include 'taglist.html' %}
- {% include 'translations.html' %}
- </footer><!-- /.post-info -->
+ {% include 'article_infos.html' %}<!-- /.post-info -->
{{ article.content }}
</div><!-- /.entry-content -->
{% if DISQUS_SITENAME %}
diff --git a/notmyidea-cms/templates/article_infos.html b/notmyidea-cms/templates/article_infos.html
new file mode 100644
index 0000000..3e3edea
--- /dev/null
+++ b/notmyidea-cms/templates/article_infos.html
@@ -0,0 +1,14 @@
+<footer class="post-info">
+ <abbr class="published" title="{{ article.date.isoformat() }}">
+ {{ article.locale_date }}
+ </abbr>
+
+ {% if article.author %}
+ <address class="vcard author">
+ 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>
+{% include 'taglist.html' %}
+{% include 'translations.html' %}
+</footer><!-- /.post-info --> \ No newline at end of file
diff --git a/notmyidea-cms/templates/index.html b/notmyidea-cms/templates/index.html
index 1425b5e..f8e2b2a 100644
--- a/notmyidea-cms/templates/index.html
+++ b/notmyidea-cms/templates/index.html
@@ -8,20 +8,7 @@
<aside id="featured"><article>
<h1 class="entry-title"><a href="{{ SITEURL }}/{{ article.url
}}">{{ article.title }}</a></h1>
- <footer class="post-info">
- <abbr class="published" title="{{ article.date.isoformat() }}">
- {{ article.date.strftime('%a %d %B %Y') }}
- </abbr>
-
- {% if article.author %}
- <address class="vcard author">
- 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>
- {% include 'taglist.html' %}
- {% include 'translations.html' %}
- </footer><!-- /.post-info -->
+ {% include 'article_infos.html' %}<!-- /.post-info -->
{{ article.content }}
</article></aside><!-- /#featured -->
{% if loop.length > 1 %}
@@ -36,18 +23,7 @@
</header>
<div class="entry-content">
- <footer class="post-info">
- <abbr class="published" title="{{ article.date.isoformat() }}">
- {{ article.date.strftime('%a %d %B %Y') }}
- </abbr>
-
- <address class="vcard author">
- 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 -->
+ {% include 'article_infos.html' %}<!-- /.post-info -->
{{ article.summary }}
<a class="readmore" href="{{ SITEURL }}/{{ article.url }}">read more</a>
</div><!-- /.entry-content -->