diff options
Diffstat (limited to 'bricabrac/templates')
-rw-r--r-- | bricabrac/templates/archives.html | 16 | ||||
-rw-r--r-- | bricabrac/templates/article.html | 2 | ||||
-rw-r--r-- | bricabrac/templates/base.html | 32 | ||||
-rw-r--r-- | bricabrac/templates/categories.html | 2 | ||||
-rw-r--r-- | bricabrac/templates/index.html | 17 | ||||
-rw-r--r-- | bricabrac/templates/page.html | 2 |
6 files changed, 29 insertions, 42 deletions
diff --git a/bricabrac/templates/archives.html b/bricabrac/templates/archives.html deleted file mode 100644 index 2f424f8..0000000 --- a/bricabrac/templates/archives.html +++ /dev/null @@ -1,16 +0,0 @@ -{% extends "base.html" %} -{% block content %} -<header> -<h1> -<a href="{{ SITEURL }}" id="site-title">{{ SITENAME }} {% if SITESUBTITLE %} <strong>{{ SITESUBTITLE }}</strong>{% endif %}</a> : -<a href="{{ SITEURL }}/archives.html" id="page-title">archives</a></h1> -</header> -<section id="content" class="body"> -<dl> -{% for article in dates %} -<dt>{{ article.locale_date }}</dt> -<dd><a href='{{ SITEURL }}/{{ article.url }}'>{{ article.title }}</a></dd> -{% endfor %} -</dl> -</section> -{% endblock %} diff --git a/bricabrac/templates/article.html b/bricabrac/templates/article.html index 61d4a45..768c9d3 100644 --- a/bricabrac/templates/article.html +++ b/bricabrac/templates/article.html @@ -9,7 +9,7 @@ {% if not HIDE_DATE %}<time datetime="{{ article.date.isoformat() }}">{{ article.locale_date }}</time>{% endif %} </header> <article> -<div class="meta" style="text-align:right;">{% if article.translations %}{% for translation in article.translations %}{{ article.lang or DEFAULT_LANG }} | <a href="{{ SITEURL }}/{{ translation.url }}"><u>{{ translation.lang }}</u></a>{% endfor %}{% endif %}</div> +<!--<div class="meta" style="text-align:right;">{% if article.translations %}{% for translation in article.translations %}{{ article.lang or DEFAULT_LANG }} | <a href="{{ SITEURL }}/{{ translation.url }}"><u>{{ translation.lang }}</u></a>{% endfor %}{% endif %}</div>--> {{ article.content }} </article> {% endblock %} diff --git a/bricabrac/templates/base.html b/bricabrac/templates/base.html index 03b0099..d372b93 100644 --- a/bricabrac/templates/base.html +++ b/bricabrac/templates/base.html @@ -3,37 +3,39 @@ <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1" /> -<link rel="stylesheet" href="{{ SITEURL }}/theme/css/{{ CSS_FILE }}" type="text/css" /> -<link href="{{ FEED_DOMAIN }}/{{ FEED_ALL_ATOM }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} ATOM Feed" /> -<link rel="icon" type="image/png" href="{{ SITEURL }}/theme/fav.png" /> +<link rel="stylesheet" href="{{ SITEURL }}/../theme/css/{{ CSS_FILE }}" type="text/css" /> +{% if FEED_ALL_ATOM %} +<link href="./{{ FEED_ALL_ATOM }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} ATOM Feed" /> +{% endif %} +{% if FEED_ALL_RSS %} +<link href="./{{ FEED_ALL_RSS }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} RSS Feed" /> +{% endif %} +<!--<link rel="icon" type="image/png" href="{{ SITEURL }}/theme/fav.png" />--> <title>{% block title %}{{ SITENAME }} {%endblock%}</title> -<!--[if IE]> -<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]--> -<!--[if lte IE 7]> -<link rel="stylesheet" type="text/css" media="all" href="{{ SITEURL }}/css/ie.css"/> -<script src="{{ SITEURL }}/js/IE8.js" type="text/javascript"></script><![endif]--> -<!--[if lt IE 7]> -<link rel="stylesheet" type="text/css" media="all" href="{{ SITEURL }}/css/ie6.css"/><![endif]--> </head> <body> <div id="conteneur"> +<!-- SNIP --> {% block content %} {% endblock %} <footer> <nav> <ul> -<li><a href="https://blog.getpelican.com/">Pelican</a> & <a href="https://github.com/Bricabraque/bricabrac-pelican-theme">bricabrac</a></li> +{% if extra_siteurls %} +{% for lang, url in extra_siteurls.items() %} +<li><a href="{{ url }}/">{{ lang | lookup_lang_name }}</a></li> +{% endfor %} +{% endif %} +<!--<li><a href="https://blog.getpelican.com/">Pelican</a> & <a href="https://github.com/Bricabraque/bricabrac-pelican-theme">bricabrac</a></li>--> {% for page in pages %} -<li> :: <a href="{{ SITEURL }}/{{ page.url }}">{{ page.title }}</a>{% if not loop.last %}{% endif %}</li> +<li>:: <a href="{{ SITEURL }}/{{ page.url }}">{{ page.title }}</a>{% if not loop.last %}{% endif %}</li> {% endfor %} -<li> :: <a href="{{ SITEURL }}/archives.html">archives</a></li> {% if categories|length > 1 %} -<li> :: <a href="{{ SITEURL }}/categories.html">catégories</a></li> +<li> :: <a href="{{ SITEURL }}/categories.html">{{ gettext('catégories') }}</a></li> {% endif %} {% if tags|length > 1 %} <li> :: <a href="{{ SITEURL }}/tags.html">tags</a></li> {% endif %} -<li> :: <a href="{{ SITEURL }}/{{ FEED_ALL_ATOM }}">atom</a></li> {% if SOCIAL %} {% for name, link in SOCIAL %} <li> :: <a href="{{ link }}">{{ name }}</a></li> diff --git a/bricabrac/templates/categories.html b/bricabrac/templates/categories.html index 380bddc..a3ef625 100644 --- a/bricabrac/templates/categories.html +++ b/bricabrac/templates/categories.html @@ -3,7 +3,7 @@ <header> <h1> <a href="{{ SITEURL }}" id="site-title">{{ SITENAME }} {% if SITESUBTITLE %} <strong>{{ SITESUBTITLE }}</strong>{% endif %}</a> : -<a href="{{ SITEURL }}/archives.html" id="page-title">catégories</a></h1> +<a href="{{ SITEURL }}/archives.html" id="page-title">{{ gettext('catégories') }}</a></h1> </header> <section id="content" class="body"> <ul> diff --git a/bricabrac/templates/index.html b/bricabrac/templates/index.html index 6797900..f5dde62 100644 --- a/bricabrac/templates/index.html +++ b/bricabrac/templates/index.html @@ -12,21 +12,22 @@ </header> <article> {{ article.summary }} -<p><a href="{{ SITEURL }}/{{ article.url }}" id="page-title"><u>lire la suite</u></a></p> </article> +<p id="continue"><a href="{{ SITEURL }}/{{ article.url }}" id="page-title"><u>{{ gettext('lire la suite') }}</u></a></p> {% if loop.length > 1 %} <section id="article-list"> -<h2>Tous les articles</h2> -<ol> +<h2>{{ gettext('Tous les articles') }}</h2> +<dl> {% endif %} {# other items #} - {% else %} -<li><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalien vers {{ article.title|striptags }}">{{ article.title }}</a></li> + {% else %} +<dt>{{ article.locale_date }}</dt> +<dd><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark">{{ article.title }}</a></dd> {% endif %} {% endfor %} - </ol> - </section><!-- #article-list --> + </dl> {% else %} - No posts found. + <p>{{ gettext('Aucun article') }}.</p> + </section><!-- #article-list --> {% endif %} {% endblock content %} diff --git a/bricabrac/templates/page.html b/bricabrac/templates/page.html index 4509e10..ae3f0ab 100644 --- a/bricabrac/templates/page.html +++ b/bricabrac/templates/page.html @@ -7,7 +7,7 @@ <a href="{{ SITEURL }}/{{ page.url }}" id="page-title">{{ page.title }}</a></h1> </header> <article> -<div class="meta" style="text-align:right;">{% if page.translations %}{% for translation in page.translations %}{{ page.lang or DEFAULT_LANG }} | <a href="{{ SITEURL }}/{{ translation.url }}"><u>{{ translation.lang }}</u></a>{% endfor %}{% endif %}</div> +<!--<div class="meta" style="text-align:right;">{% if page.translations %}{% for translation in page.translations %}{{ page.lang or DEFAULT_LANG }} | <a href="{{ SITEURL }}/{{ translation.url }}"><u>{{ translation.lang }}</u></a>{% endfor %}{% endif %}</div>--> {{ page.content }} </article> {% endblock %} |