summaryrefslogtreecommitdiff
path: root/theme/templates
diff options
context:
space:
mode:
authorSébastien Dailly <sebastien@chimrod.com>2013-04-21 21:25:41 +0200
committerSébastien Dailly <sebastien@chimrod.com>2013-04-22 22:15:36 +0200
commite27cca7f72744a79671f40df7ed6e7f3520143b2 (patch)
treed64a5c155911dd4dee53a9369b37198e319d79eb /theme/templates
parentcbf9db14f3027ffe40021533fd1df4bd8ac34327 (diff)
Added a resume on the blog in static page
Diffstat (limited to 'theme/templates')
-rwxr-xr-xtheme/templates/article.html2
-rwxr-xr-xtheme/templates/menu.html16
-rwxr-xr-xtheme/templates/page.html3
3 files changed, 16 insertions, 5 deletions
diff --git a/theme/templates/article.html b/theme/templates/article.html
index f66fe72..6c57dbf 100755
--- a/theme/templates/article.html
+++ b/theme/templates/article.html
@@ -4,7 +4,7 @@
{% block content %}
<article class="post">
- <h2 class="page_title"><a href="{{ article.url }}" rel="bookmark" title="{{SITENAME}} - {{ article.title }}">{{ article.title }}</a></h2>
+ <h1 class="page_title"><a href="{{ article.url }}" rel="bookmark" title="{{SITENAME}} - {{ article.title }}">{{ article.title }}</a></h1>
{%include 'meta.html'%}
<section class="post_content">
diff --git a/theme/templates/menu.html b/theme/templates/menu.html
index 5aca0f7..037d85a 100755
--- a/theme/templates/menu.html
+++ b/theme/templates/menu.html
@@ -26,9 +26,19 @@
{{ submenu(categories, 'categories', 'Catégories') }}
- {% if LINKS %}
- {{ submenu(LINKS, 'index', 'Liens') }}
- {% endif %}
+ <li class='has-sub'><a href="{{ SITEURL }}/"><span>À lire</span></a>
+ <ul>
+ {% for page in pages %}
+ <li><a href="{{SITEURL}}/{{page.url}}"><span>{{ page.title }}</span></a></li>
+ {% endfor %}
+ {% if pages and LINKS %}
+ <hr/>
+ {% endif %}
+ {% for link, target in LINKS %}
+ <li><a href="{{target}}"><span>{{ link }}</span></a></li>
+ {% endfor %}
+ </ul>
+ </li>
{#
diff --git a/theme/templates/page.html b/theme/templates/page.html
index 4a2a9b7..1608771 100755
--- a/theme/templates/page.html
+++ b/theme/templates/page.html
@@ -1,10 +1,11 @@
{% extends "base.html" %}
+
{% block title %}{{ page.title }}{% endblock %}
{% block content %}
<h1 class="page_title"><a href="{{ SITEURL }}/{{ page.url }}">{{ page.title }}</a></h1>
{% if PDF_PROCESSOR %}<a href="{{ SITEURL }}/pdf/{{ page.slug }}.pdf">get
the pdf</a>{% endif %}
- <div style="clear: both;">&nbsp;</div>
+
<section class="page_content">
{{ page.content }}
</section>