aboutsummaryrefslogtreecommitdiff
path: root/theme/templates
diff options
context:
space:
mode:
Diffstat (limited to 'theme/templates')
-rwxr-xr-xtheme/templates/article.html4
-rwxr-xr-xtheme/templates/index.html24
-rwxr-xr-xtheme/templates/menu.html2
-rw-r--r--theme/templates/translations.html10
4 files changed, 31 insertions, 9 deletions
diff --git a/theme/templates/article.html b/theme/templates/article.html
index b53962d..a23074c 100755
--- a/theme/templates/article.html
+++ b/theme/templates/article.html
@@ -6,6 +6,9 @@
<article class="post">
<h1 class="page_title"><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></h1>
{%include 'meta.html'%}
+ {% import 'translations.html' as translations with context %}
+ {{ translations.translations_for(article) }}
+
<section class="post_content">
{{ article.content }}
@@ -14,6 +17,7 @@
</article>
{% if article.related_posts and article.related_posts %}
+ <div class="clear" />
<h2>&Agrave; lire aussi&nbsp;:</h2>
diff --git a/theme/templates/index.html b/theme/templates/index.html
index d045910..bf288a8 100755
--- a/theme/templates/index.html
+++ b/theme/templates/index.html
@@ -6,14 +6,22 @@
{% for article in (articles_page.object_list if articles_page else articles) %}
<article class="post">
<h1 class="title"><a href="{{ SITEURL }}/{{ article.url}}">{{ article.title }}</a></h1>
-<time class="meta" datetime="{{ article.date.isoformat() }}" pubdate="pubdate">{{ article.locale_date }}</time>
-
- <section class="post_content">
- {{ article.summary }}
- <div class="clear" />
- {% if not loop.last %}
- <hr>
- {% endif %}
+
+
+ <time class="meta" datetime="{{ article.date.isoformat() }}" pubdate="pubdate">{{ article.locale_date }}</time>
+ <section class="post_content">
+
+ {% if article.logo %}
+ <div class="floatleft figure" style="width: 75px">
+ <img src="{{article.logo}}" >
+ </div>
+ {% endif %}
+
+ {{ article.summary }}
+ <div class="clear" />
+ {% if not loop.last %}
+ <hr>
+ {% endif %}
</section>
</article>
{% endfor %}
diff --git a/theme/templates/menu.html b/theme/templates/menu.html
index bab98fa..6cc3636 100755
--- a/theme/templates/menu.html
+++ b/theme/templates/menu.html
@@ -15,7 +15,7 @@
<li class='has-sub'><span><a href="{{ SITEURL }}/">Articles</a></span>
<ul>
{% for article in articles %}
- {% if loop.index < FEED_MAX_ITEMS %}
+ {% if loop.index <= FEED_MAX_ITEMS %}
<li><a href="{{ SITEURL }}/{{ article.url}}">{{ article.title }}</a></li>
{% endif %}
{% endfor %}
diff --git a/theme/templates/translations.html b/theme/templates/translations.html
new file mode 100644
index 0000000..121ff1a
--- /dev/null
+++ b/theme/templates/translations.html
@@ -0,0 +1,10 @@
+{% macro translations_for(article) %}
+{% if article.translations %}
+<details class="meta">
+Traductions :
+{% for translation in article.translations %}
+<a href="{{ SITEURL }}/{{ translation.url }}">{{ translation.lang }}</a>
+{% endfor %}
+</details>
+{% endif %}
+{% endmacro %}