aboutsummaryrefslogtreecommitdiffstats
path: root/notmyidea-cms/templates/index.html
diff options
context:
space:
mode:
authorFELD Boris <lothiraldan@gmail.com>2011-04-08 13:41:44 +0200
committerFELD Boris <lothiraldan@gmail.com>2011-04-08 13:41:44 +0200
commit3e04e093dd7bde61f27213045091463a0addc356 (patch)
treeb2b51445fa600e7e657374172ccc4f4642ae6247 /notmyidea-cms/templates/index.html
parentd5a2b51f9ad37708b1fdeaa9c2fa4b27ca0836d0 (diff)
downloadpelican-themes-3e04e093dd7bde61f27213045091463a0addc356.zip
pelican-themes-3e04e093dd7bde61f27213045091463a0addc356.tar.gz
pelican-themes-3e04e093dd7bde61f27213045091463a0addc356.tar.bz2
Add link to article translations in index and article template
Diffstat (limited to 'notmyidea-cms/templates/index.html')
-rw-r--r--notmyidea-cms/templates/index.html15
1 files changed, 8 insertions, 7 deletions
diff --git a/notmyidea-cms/templates/index.html b/notmyidea-cms/templates/index.html
index d822249..1425b5e 100644
--- a/notmyidea-cms/templates/index.html
+++ b/notmyidea-cms/templates/index.html
@@ -1,13 +1,13 @@
{% extends "base.html" %}
{% block content_title %}{% endblock %}
-{% block content %}
+{% block content %}
{% if articles %}
-{% for article in articles %}
+{% for article in articles %}
{% if loop.index == 1 %}
<section id="content" class="body">
<aside id="featured"><article>
<h1 class="entry-title"><a href="{{ SITEURL }}/{{ article.url
- }}">{{ article.title }}</a></h1>
+ }}">{{ article.title }}</a></h1>
<footer class="post-info">
<abbr class="published" title="{{ article.date.isoformat() }}">
{{ article.date.strftime('%a %d %B %Y') }}
@@ -20,6 +20,7 @@
{% 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 -->
{{ article.content }}
</article></aside><!-- /#featured -->
@@ -28,12 +29,12 @@
<hr />
<ol id="posts-list" class="hfeed">
{% endif %}
- {% else %}
- <li><article class="hentry">
+ {% else %}
+ <li><article class="hentry">
<header>
<h1><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title}}">{{ article.title }}</a></h1>
</header>
-
+
<div class="entry-content">
<footer class="post-info">
<abbr class="published" title="{{ article.date.isoformat() }}">
@@ -56,7 +57,7 @@
</ol><!-- /#posts-list -->
</section><!-- /#content -->
{% else %}
-<section id="content" class="body">
+<section id="content" class="body">
<h2>Pages</h2>
{% for page in PAGES %}
<li><a href="{{ SITEURL }}/pages/{{ page.url }}">{{ page.title }}</a></li>