From e27cca7f72744a79671f40df7ed6e7f3520143b2 Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Sun, 21 Apr 2013 21:25:41 +0200 Subject: Added a resume on the blog in static page --- theme/static/css/main.css | 20 ++++++++++++++++++++ theme/templates/article.html | 2 +- theme/templates/menu.html | 16 +++++++++++++--- 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.title }}

+

{{ article.title }}

{%include 'meta.html'%}
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 %} +
  • À lire +
      + {% for page in pages %} +
    • {{ page.title }}
    • + {% endfor %} + {% if pages and LINKS %} +
      + {% endif %} + {% for link, target in LINKS %} +
    • {{ link }}
    • + {% endfor %} +
    +
  • {# 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 %}

    {{ page.title }}

    {% if PDF_PROCESSOR %}get the pdf{% endif %} -
     
    +
    {{ page.content }}
    -- cgit v1.2.3