diff options
author | Audric Schiltknecht <storm@chemicalstorm.org> | 2014-05-09 12:13:44 +0200 |
---|---|---|
committer | Audric Schiltknecht <storm@chemicalstorm.org> | 2014-06-04 22:31:18 +0200 |
commit | 0891e0146f0dcf9e6db7ccce4376114c339fa5df (patch) | |
tree | f9981617b5fea1e0ac993a6fbe008e1cebfa7941 /themes/dev-urandom/templates/includes | |
parent | c710c428dad250a091f7decb0cb31928b0d25339 (diff) | |
download | schiltknecht.org-0891e0146f0dcf9e6db7ccce4376114c339fa5df.tar.gz schiltknecht.org-0891e0146f0dcf9e6db7ccce4376114c339fa5df.tar.bz2 schiltknecht.org-0891e0146f0dcf9e6db7ccce4376114c339fa5df.zip |
Import du thème 'dev-random2' pour modifications
Diffstat (limited to 'themes/dev-urandom/templates/includes')
-rw-r--r-- | themes/dev-urandom/templates/includes/article_meta.html | 17 | ||||
-rw-r--r-- | themes/dev-urandom/templates/includes/sidebar.html | 55 |
2 files changed, 72 insertions, 0 deletions
diff --git a/themes/dev-urandom/templates/includes/article_meta.html b/themes/dev-urandom/templates/includes/article_meta.html new file mode 100644 index 0000000..38b337b --- /dev/null +++ b/themes/dev-urandom/templates/includes/article_meta.html @@ -0,0 +1,17 @@ +<!-- includes/article_meta.html --> + Le <time datetime="{{ article.date.isoformat() }}">{{ article.locale_date }}</time> + dans «<a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>» + par <a href="{{ SITEURL }}/{{ article.author.url }}">{{ article.author }}</a> + {%- if article.tags %} + <br />Mots-clés: + {%- for tag in article.tags %} + <a rel="tag" href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a>{% if not loop.last %}, {% endif %} + {% endfor -%} + {% endif -%} + {%- if article.translations %} + <br />Langues: + [<a href="{{ SITEURL }}/{{ article.url }}">{{ article.lang or DEFAULT_LANG }}</a>] + {%- for translation in article.translations %} + <a href="{{ SITEURL }}/{{ translation.url }}">{{ translation.lang }}</a> + {% endfor -%} + {% endif -%} diff --git a/themes/dev-urandom/templates/includes/sidebar.html b/themes/dev-urandom/templates/includes/sidebar.html new file mode 100644 index 0000000..0d5d5ef --- /dev/null +++ b/themes/dev-urandom/templates/includes/sidebar.html @@ -0,0 +1,55 @@ + + <!-- begin includes/sidebar.html --> + <nav> + <h3>Pages</h3> + <ul> + <li><a href="{{ SITEURL }}">Accueil</a></li> + <li><a href="{{ SITEURL }}/categories.html">Catégories</a></li> + <li><a href="{{ SITEURL }}/archives.html">Archives</a></li> + <li><a href="{{ SITEURL }}/tags.html">Mots-clés</a></li> + {% if MENUITEMS %} + {% for name, uri in MENUITEMS %} + <li><a href="{{ uri|format(SITEURL)}}">{{ name }}</a></li> + {% endfor %} + {% endif %} + {% if DISPLAY_PAGES_ON_MENU %} + {% for p in PAGES %} + <li><a href="{{ SITEURL}}/{{ p.url }}"{% if p == page %} class="active"{% endif %}>{{ p.title }}</a></li> + {% endfor %} + {% endif %} + </ul> + </nav> + + {% if categories %} + <nav> + <h3>Catégories</h3> + <ul> + {% for cat, null in categories %} + <li{%- if cat == category %} class="active"{% endif -%}><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a></li> + {% endfor %} + </ul> + </nav> + {% endif %} + + <nav> + <h3>Liens</h3> + <ul> + {% if FEED_ATOM %} + <li><a href="{{ FEED_DOMAIN }}/{{ FEED_ATOM }}">Flux ATOM</a></li> + {% endif %} + {% if FEED_RSS %} + <li><a href="{{ FEED_DOMAIN }}/{{ FEED_RSS }}">Flux RSS</a></li> + {% endif %} + {% if SOCIAL %} + {% for name, url in SOCIAL %} + <li><a href="{{ url }}">{{ name }}</a></li> + {% endfor %} + {% endif %} + {% if LINKS %} + {% for name, url in LINKS %} + <li><a href="{{ url }}">{{ name }}</a></li> + {% endfor %} + {% endif %} + </ul> + </nav> + <!-- end includes/sidebar.html --> |