diff options
author | Sébastien Dailly <sebastien@chimrod.com> | 2013-04-21 21:25:41 +0200 |
---|---|---|
committer | Sébastien Dailly <sebastien@chimrod.com> | 2013-04-22 22:15:36 +0200 |
commit | e27cca7f72744a79671f40df7ed6e7f3520143b2 (patch) | |
tree | d64a5c155911dd4dee53a9369b37198e319d79eb /theme | |
parent | cbf9db14f3027ffe40021533fd1df4bd8ac34327 (diff) |
Added a resume on the blog in static page
Diffstat (limited to 'theme')
-rwxr-xr-x | theme/static/css/main.css | 20 | ||||
-rwxr-xr-x | theme/templates/article.html | 2 | ||||
-rwxr-xr-x | theme/templates/menu.html | 16 | ||||
-rwxr-xr-x | theme/templates/page.html | 3 |
4 files changed, 36 insertions, 5 deletions
diff --git a/theme/static/css/main.css b/theme/static/css/main.css index 2460f45..31a2d33 100755 --- a/theme/static/css/main.css +++ b/theme/static/css/main.css @@ -82,12 +82,32 @@ table { padding: 0; margin: 15px 10px; } + +table.docutils { + border: none; +} + td, th { margin: 0; padding: 2px 5px; border: 1px dotted grey; } + tr.field td { + border: none; + } + + tr.field th { + border: none; + width: 9em; + } + + tr.field p { + margin: 0; + margin-bottom: 0.2em; + } + + hr { height: 0; width: 60%; 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;"> </div> + <section class="page_content"> {{ page.content }} </section> |