1
0
Fork 0
forked from github/pelican

Merge pull request #3234 from pauloxnet/feature/3233-simple-classless-semantic-html

This commit is contained in:
Justin Mayer 2023-11-12 07:58:12 +01:00 committed by GitHub
commit be5afa3175
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
27 changed files with 163 additions and 119 deletions

1
.gitignore vendored
View file

@ -17,3 +17,4 @@ samples/output
*.pem *.pem
*.lock *.lock
.pdm-python .pdm-python
.venv

View file

@ -1231,6 +1231,12 @@ Following are example ways to specify your preferred theme::
# Specify a customized theme, via absolute path # Specify a customized theme, via absolute path
THEME = "/home/myuser/projects/mysite/themes/mycustomtheme" THEME = "/home/myuser/projects/mysite/themes/mycustomtheme"
The built-in ``simple`` theme can be customized using the following settings.
.. data:: STYLESHEET_URL
The URL of the stylesheet to use.
The built-in ``notmyidea`` theme can make good use of the following settings. The built-in ``notmyidea`` theme can make good use of the following settings.
Feel free to use them in your themes as well. Feel free to use them in your themes as well.

View file

@ -120,11 +120,13 @@
<p>There are <a href="../article-1.html#disqus_thread">comments</a>.</p> </div><!-- /.entry-content --> <p>There are <a href="../article-1.html#disqus_thread">comments</a>.</p> </div><!-- /.entry-content -->
</article></li> </article></li>
</ol><!-- /#posts-list --> </ol><!-- /#posts-list -->
<p class="paginator"> <nav>
Page 1 / 3 <ul>
<a href="../author/alexis-metaireau2.html">&raquo;</a> <li>Page 1 / 3</li>
<a href="../author/alexis-metaireau3.html">&#8649;</a> <li><a href="../author/alexis-metaireau2.html">&rang;</a></li>
</p> <li><a href="../author/alexis-metaireau3.html">&Rang;</a></li>
</ul>
</nav>
</section><!-- /#content --> </section><!-- /#content -->
<section id="extras" class="body"> <section id="extras" class="body">
<div class="blogroll"> <div class="blogroll">

View file

@ -133,13 +133,15 @@ YEAH !</p>
<p>There are <a href="../oh-yeah.html#disqus_thread">comments</a>.</p> </div><!-- /.entry-content --> <p>There are <a href="../oh-yeah.html#disqus_thread">comments</a>.</p> </div><!-- /.entry-content -->
</article></li> </article></li>
</ol><!-- /#posts-list --> </ol><!-- /#posts-list -->
<p class="paginator"> <nav>
<a href="../author/alexis-metaireau.html">&#8647;</a> <ul>
<a href="../author/alexis-metaireau.html">&laquo;</a> <li><a href="../author/alexis-metaireau.html">&Lang;</a></li>
Page 2 / 3 <li><a href="../author/alexis-metaireau.html">&lang;</a></li>
<a href="../author/alexis-metaireau3.html">&raquo;</a> <li>Page 2 / 3</li>
<a href="../author/alexis-metaireau3.html">&#8649;</a> <li><a href="../author/alexis-metaireau3.html">&rang;</a></li>
</p> <li><a href="../author/alexis-metaireau3.html">&Rang;</a></li>
</ul>
</nav>
</section><!-- /#content --> </section><!-- /#content -->
<section id="extras" class="body"> <section id="extras" class="body">
<div class="blogroll"> <div class="blogroll">

View file

@ -85,11 +85,13 @@ pelican.conf, it will …</p></div>
<p>There are <a href="../tag/baz.html#disqus_thread">comments</a>.</p> </div><!-- /.entry-content --> <p>There are <a href="../tag/baz.html#disqus_thread">comments</a>.</p> </div><!-- /.entry-content -->
</article></li> </article></li>
</ol><!-- /#posts-list --> </ol><!-- /#posts-list -->
<p class="paginator"> <nav>
<a href="../author/alexis-metaireau.html">&#8647;</a> <ul>
<a href="../author/alexis-metaireau2.html">&laquo;</a> <li><a href="../author/alexis-metaireau.html">&Lang;</a></li>
Page 3 / 3 <li><a href="../author/alexis-metaireau2.html">&lang;</a></li>
</p> <li>Page 3 / 3</li>
</ul>
</nav>
</section><!-- /#content --> </section><!-- /#content -->
<section id="extras" class="body"> <section id="extras" class="body">
<div class="blogroll"> <div class="blogroll">

View file

@ -120,11 +120,13 @@
<p>There are <a href="./article-1.html#disqus_thread">comments</a>.</p> </div><!-- /.entry-content --> <p>There are <a href="./article-1.html#disqus_thread">comments</a>.</p> </div><!-- /.entry-content -->
</article></li> </article></li>
</ol><!-- /#posts-list --> </ol><!-- /#posts-list -->
<p class="paginator"> <nav>
Page 1 / 3 <ul>
<a href="./index2.html">&raquo;</a> <li>Page 1 / 3</li>
<a href="./index3.html">&#8649;</a> <li><a href="./index2.html">&rang;</a></li>
</p> <li><a href="./index3.html">&Rang;</a></li>
</ul>
</nav>
</section><!-- /#content --> </section><!-- /#content -->
<section id="extras" class="body"> <section id="extras" class="body">
<div class="blogroll"> <div class="blogroll">

View file

@ -133,13 +133,15 @@ YEAH !</p>
<p>There are <a href="./oh-yeah.html#disqus_thread">comments</a>.</p> </div><!-- /.entry-content --> <p>There are <a href="./oh-yeah.html#disqus_thread">comments</a>.</p> </div><!-- /.entry-content -->
</article></li> </article></li>
</ol><!-- /#posts-list --> </ol><!-- /#posts-list -->
<p class="paginator"> <nav>
<a href="./index.html">&#8647;</a> <ul>
<a href="./index.html">&laquo;</a> <li><a href="./index.html">&Lang;</a></li>
Page 2 / 3 <li><a href="./index.html">&lang;</a></li>
<a href="./index3.html">&raquo;</a> <li>Page 2 / 3</li>
<a href="./index3.html">&#8649;</a> <li><a href="./index3.html">&rang;</a></li>
</p> <li><a href="./index3.html">&Rang;</a></li>
</ul>
</nav>
</section><!-- /#content --> </section><!-- /#content -->
<section id="extras" class="body"> <section id="extras" class="body">
<div class="blogroll"> <div class="blogroll">

View file

@ -85,11 +85,13 @@ pelican.conf, it will …</p></div>
<p>There are <a href="./tag/baz.html#disqus_thread">comments</a>.</p> </div><!-- /.entry-content --> <p>There are <a href="./tag/baz.html#disqus_thread">comments</a>.</p> </div><!-- /.entry-content -->
</article></li> </article></li>
</ol><!-- /#posts-list --> </ol><!-- /#posts-list -->
<p class="paginator"> <nav>
<a href="./index.html">&#8647;</a> <ul>
<a href="./index2.html">&laquo;</a> <li><a href="./index.html">&Lang;</a></li>
Page 3 / 3 <li><a href="./index2.html">&lang;</a></li>
</p> <li>Page 3 / 3</li>
</ul>
</nav>
</section><!-- /#content --> </section><!-- /#content -->
<section id="extras" class="body"> <section id="extras" class="body">
<div class="blogroll"> <div class="blogroll">

View file

@ -120,11 +120,13 @@
<p>There are <a href="../posts/2011/février/17/article-1/#disqus_thread">comments</a>.</p> </div><!-- /.entry-content --> <p>There are <a href="../posts/2011/février/17/article-1/#disqus_thread">comments</a>.</p> </div><!-- /.entry-content -->
</article></li> </article></li>
</ol><!-- /#posts-list --> </ol><!-- /#posts-list -->
<p class="paginator"> <nav>
Page 1 / 3 <ul>
<a href="../author/alexis-metaireau2.html">&raquo;</a> <li>Page 1 / 3</li>
<a href="../author/alexis-metaireau3.html">&#8649;</a> <li><a href="../author/alexis-metaireau2.html">&rang;</a></li>
</p> <li><a href="../author/alexis-metaireau3.html">&Rang;</a></li>
</ul>
</nav>
</section><!-- /#content --> </section><!-- /#content -->
<section id="extras" class="body"> <section id="extras" class="body">
<div class="blogroll"> <div class="blogroll">

View file

@ -133,13 +133,15 @@ YEAH !</p>
<p>There are <a href="../posts/2010/octobre/20/oh-yeah/#disqus_thread">comments</a>.</p> </div><!-- /.entry-content --> <p>There are <a href="../posts/2010/octobre/20/oh-yeah/#disqus_thread">comments</a>.</p> </div><!-- /.entry-content -->
</article></li> </article></li>
</ol><!-- /#posts-list --> </ol><!-- /#posts-list -->
<p class="paginator"> <nav>
<a href="../author/alexis-metaireau.html">&#8647;</a> <ul>
<a href="../author/alexis-metaireau.html">&laquo;</a> <li><a href="../author/alexis-metaireau.html">&Lang;</a></li>
Page 2 / 3 <li><a href="../author/alexis-metaireau.html">&lang;</a></li>
<a href="../author/alexis-metaireau3.html">&raquo;</a> <li>Page 2 / 3</li>
<a href="../author/alexis-metaireau3.html">&#8649;</a> <li><a href="../author/alexis-metaireau3.html">&rang;</a></li>
</p> <li><a href="../author/alexis-metaireau3.html">&Rang;</a></li>
</ul>
</nav>
</section><!-- /#content --> </section><!-- /#content -->
<section id="extras" class="body"> <section id="extras" class="body">
<div class="blogroll"> <div class="blogroll">

View file

@ -85,11 +85,13 @@ pelican.conf, it will …</p></div>
<p>There are <a href="../tag/baz.html#disqus_thread">comments</a>.</p> </div><!-- /.entry-content --> <p>There are <a href="../tag/baz.html#disqus_thread">comments</a>.</p> </div><!-- /.entry-content -->
</article></li> </article></li>
</ol><!-- /#posts-list --> </ol><!-- /#posts-list -->
<p class="paginator"> <nav>
<a href="../author/alexis-metaireau.html">&#8647;</a> <ul>
<a href="../author/alexis-metaireau2.html">&laquo;</a> <li><a href="../author/alexis-metaireau.html">&Lang;</a></li>
Page 3 / 3 <li><a href="../author/alexis-metaireau2.html">&lang;</a></li>
</p> <li>Page 3 / 3</li>
</ul>
</nav>
</section><!-- /#content --> </section><!-- /#content -->
<section id="extras" class="body"> <section id="extras" class="body">
<div class="blogroll"> <div class="blogroll">

View file

@ -120,11 +120,13 @@
<p>There are <a href="./posts/2011/février/17/article-1/#disqus_thread">comments</a>.</p> </div><!-- /.entry-content --> <p>There are <a href="./posts/2011/février/17/article-1/#disqus_thread">comments</a>.</p> </div><!-- /.entry-content -->
</article></li> </article></li>
</ol><!-- /#posts-list --> </ol><!-- /#posts-list -->
<p class="paginator"> <nav>
Page 1 / 3 <ul>
<a href="./index2.html">&raquo;</a> <li>Page 1 / 3</li>
<a href="./index3.html">&#8649;</a> <li><a href="./index2.html">&rang;</a></li>
</p> <li><a href="./index3.html">&Rang;</a></li>
</ul>
</nav>
</section><!-- /#content --> </section><!-- /#content -->
<section id="extras" class="body"> <section id="extras" class="body">
<div class="blogroll"> <div class="blogroll">

View file

@ -133,13 +133,15 @@ YEAH !</p>
<p>There are <a href="./posts/2010/octobre/20/oh-yeah/#disqus_thread">comments</a>.</p> </div><!-- /.entry-content --> <p>There are <a href="./posts/2010/octobre/20/oh-yeah/#disqus_thread">comments</a>.</p> </div><!-- /.entry-content -->
</article></li> </article></li>
</ol><!-- /#posts-list --> </ol><!-- /#posts-list -->
<p class="paginator"> <nav>
<a href="./index.html">&#8647;</a> <ul>
<a href="./index.html">&laquo;</a> <li><a href="./index.html">&Lang;</a></li>
Page 2 / 3 <li><a href="./index.html">&lang;</a></li>
<a href="./index3.html">&raquo;</a> <li>Page 2 / 3</li>
<a href="./index3.html">&#8649;</a> <li><a href="./index3.html">&rang;</a></li>
</p> <li><a href="./index3.html">&Rang;</a></li>
</ul>
</nav>
</section><!-- /#content --> </section><!-- /#content -->
<section id="extras" class="body"> <section id="extras" class="body">
<div class="blogroll"> <div class="blogroll">

View file

@ -85,11 +85,13 @@ pelican.conf, it will …</p></div>
<p>There are <a href="./tag/baz.html#disqus_thread">comments</a>.</p> </div><!-- /.entry-content --> <p>There are <a href="./tag/baz.html#disqus_thread">comments</a>.</p> </div><!-- /.entry-content -->
</article></li> </article></li>
</ol><!-- /#posts-list --> </ol><!-- /#posts-list -->
<p class="paginator"> <nav>
<a href="./index.html">&#8647;</a> <ul>
<a href="./index2.html">&laquo;</a> <li><a href="./index.html">&Lang;</a></li>
Page 3 / 3 <li><a href="./index2.html">&lang;</a></li>
</p> <li>Page 3 / 3</li>
</ul>
</nav>
</section><!-- /#content --> </section><!-- /#content -->
<section id="extras" class="body"> <section id="extras" class="body">
<div class="blogroll"> <div class="blogroll">

View file

@ -3,7 +3,7 @@
{% block title %}{{ SITENAME|striptags }} - Archives{% endblock %} {% block title %}{{ SITENAME|striptags }} - Archives{% endblock %}
{% block content %} {% block content %}
<h1>Archives for {{ SITENAME }}</h1> <h2>Archives for {{ SITENAME }}</h2>
<dl> <dl>
{% for article in dates %} {% for article in dates %}

View file

@ -22,44 +22,44 @@
{% endblock %} {% endblock %}
{% block content %} {% block content %}
<article>
<header> <header>
<h1 class="entry-title"> <h2>
<a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" <a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark"
title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h1> title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h2>
{% import 'translations.html' as translations with context %} {% import 'translations.html' as translations with context %}
{{ translations.translations_for(article) }} {{ translations.translations_for(article) }}
</header> </header>
<footer class="post-info"> {{ article.content }}
<time class="published" datetime="{{ article.date.isoformat() }}"> <footer>
<p>Published: <time datetime="{{ article.date.isoformat() }}">
{{ article.locale_date }} {{ article.locale_date }}
</time> </time></p>
{% if article.modified %} {% if article.modified %}
<time class="modified" datetime="{{ article.modified.isoformat() }}"> <p>Last updated: <time datetime="{{ article.modified.isoformat() }}">
{{ article.locale_modified }} {{ article.locale_modified }}
</time> </time></p>
{% endif %} {% endif %}
{% if article.authors %} {% if article.authors %}
<address class="vcard author"> <address>
By {% for author in article.authors %} By {% for author in article.authors %}
<a class="url fn" href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a> <a href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a>
{% endfor %} {% endfor %}
</address> </address>
{% endif %} {% endif %}
{% if article.category %} {% if article.category %}
<div class="category"> <p>
Category: <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a> Category: <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>
</div> </p>
{% endif %} {% endif %}
{% if article.tags %} {% if article.tags %}
<div class="tags"> <p>
Tags: Tags:
{% for tag in article.tags %} {% for tag in article.tags %}
<a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a> <a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a>
{% endfor %} {% endfor %}
</div> </p>
{% endif %} {% endif %}
</footer><!-- /.post-info --> </footer>
<article>
{{ article.content }}
</article> </article>
{% endblock %} {% endblock %}

View file

@ -3,5 +3,5 @@
{% block title %}{{ SITENAME|striptags }} - Articles by {{ author }}{% endblock %} {% block title %}{{ SITENAME|striptags }} - Articles by {{ author }}{% endblock %}
{% block content_title %} {% block content_title %}
<h1>Articles by {{ author }}</h1> <h2>Articles by {{ author }}</h2>
{% endblock %} {% endblock %}

View file

@ -3,7 +3,7 @@
{% block title %}{{ SITENAME|striptags }} - Authors{% endblock %} {% block title %}{{ SITENAME|striptags }} - Authors{% endblock %}
{% block content %} {% block content %}
<h1>Authors on {{ SITENAME }}</h1> <h2>Authors on {{ SITENAME }}</h2>
<ul> <ul>
{% for author, articles in authors|sort %} {% for author, articles in authors|sort %}
<li><a href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a> ({{ articles|count }})</li> <li><a href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a> ({{ articles|count }})</li>

View file

@ -6,6 +6,12 @@
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="generator" content="Pelican" /> <meta name="generator" content="Pelican" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
{% if SITESUBTITLE %}
<meta name="description" content="{{ SITESUBTITLE }}" />
{% endif %}
{% if STYLESHEET_URL %}
<link rel="stylesheet" type="text/css" href="{{ STYLESHEET_URL }}" />
{% endif %}
{% if FEED_ALL_ATOM %} {% if FEED_ALL_ATOM %}
<link href="{{ FEED_DOMAIN }}/{% if FEED_ALL_ATOM_URL %}{{ FEED_ALL_ATOM_URL }}{% else %}{{ FEED_ALL_ATOM }}{% endif %}" type="application/atom+xml" rel="alternate" title="{{ SITENAME|striptags }} Full Atom Feed" /> <link href="{{ FEED_DOMAIN }}/{% if FEED_ALL_ATOM_URL %}{{ FEED_ALL_ATOM_URL }}{% else %}{{ FEED_ALL_ATOM }}{% endif %}" type="application/atom+xml" rel="alternate" title="{{ SITENAME|striptags }} Full Atom Feed" />
{% endif %} {% endif %}
@ -35,32 +41,32 @@
<body> <body>
<header> <header>
<h1><a href="{{ SITEURL }}/">{{ SITENAME }}{% if SITESUBTITLE %} <strong>{{ SITESUBTITLE }}</strong>{% endif %}</a></h1> <hgroup><h1><a href="{{ SITEURL }}/">{{ SITENAME }}</a></h1>{% if SITESUBTITLE %}<p>{{ SITESUBTITLE }}</p>{% endif %}</hgroup>
</header>
<nav><ul> <nav><ul>
{% for title, link in MENUITEMS %} {% for title, link in MENUITEMS %}
<li><a href="{{ link }}">{{ title }}</a></li> <li><a href="{{ link }}">{{ title }}</a></li>
{% endfor %} {% endfor %}
{% if DISPLAY_PAGES_ON_MENU %} {% if DISPLAY_PAGES_ON_MENU %}
{% for p in pages %} {% for p in pages %}
<li{% if p == page %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ p.url }}">{{ p.title }}</a></li> <li><a href="{{ SITEURL }}/{{ p.url }}" {% if p==page %} aria-current="page" {% endif %}>{{ p.title }}</a></li>
{% endfor %} {% endfor %}
{% endif %} {% endif %}
{% if DISPLAY_CATEGORIES_ON_MENU %} {% if DISPLAY_CATEGORIES_ON_MENU %}
{% for cat, null in categories %} {% for cat, null in categories %}
<li{% if cat == category %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a></li> <li><a href="{{ SITEURL }}/{{ cat.url }}" {% if cat==category %} aria-current="page" {% endif %}>{{ cat}}</a></li>
{% endfor %} {% endfor %}
{% endif %} {% endif %}
</ul></nav> </ul></nav>
</header>
<main> <main>
{% block content %} {% block content %}
{% endblock %} {% endblock %}
</main> </main>
<footer> <footer>
<address id="about" class="vcard body"> <address>
Proudly powered by <a rel="nofollow" href="https://getpelican.com/">Pelican</a>, Proudly powered by <a rel="nofollow" href="https://getpelican.com/">Pelican</a>,
which takes great advantage of <a rel="nofollow" href="https://www.python.org/">Python</a>. which takes great advantage of <a rel="nofollow" href="https://www.python.org/">Python</a>.
</address><!-- /#about --> </address>
</footer> </footer>
</body> </body>
</html> </html>

View file

@ -3,7 +3,7 @@
{% block title %}{{ SITENAME|striptags }} - Categories{% endblock %} {% block title %}{{ SITENAME|striptags }} - Categories{% endblock %}
{% block content %} {% block content %}
<h1>Categories on {{ SITENAME }}</h1> <h2>Categories on {{ SITENAME }}</h2>
<ul> <ul>
{% for category, articles in categories|sort %} {% for category, articles in categories|sort %}
<li><a href="{{ SITEURL }}/{{ category.url }}">{{ category }}</a> ({{ articles|count }})</li> <li><a href="{{ SITEURL }}/{{ category.url }}">{{ category }}</a> ({{ articles|count }})</li>

View file

@ -3,5 +3,5 @@
{% block title %}{{ SITENAME|striptags }} - {{ category }} category{% endblock %} {% block title %}{{ SITENAME|striptags }} - {{ category }} category{% endblock %}
{% block content_title %} {% block content_title %}
<h1>Articles in the {{ category }} category</h1> <h2>Articles in the {{ category }} category</h2>
{% endblock %} {% endblock %}

View file

@ -1,28 +1,27 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block content %} {% block content %}
<section id="content">
{% block content_title %} {% block content_title %}
<h2>All articles</h2> <h2>All articles</h2>
{% endblock %} {% endblock %}
<ol id="post-list">
{% for article in articles_page.object_list %} {% for article in articles_page.object_list %}
<li><article class="hentry"> <article>
<header> <h2 class="entry-title"><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h2> </header> <header> <h2><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h2> </header>
<footer class="post-info"> <section>{{ article.summary }}</section>
<time class="published" datetime="{{ article.date.isoformat() }}"> {{ article.locale_date }} </time> <footer>
<address class="vcard author">By <p>Published: <time datetime="{{ article.date.isoformat() }}"> {{ article.locale_date }} </time></p>
<address>By
{% for author in article.authors %} {% for author in article.authors %}
<a class="url fn" href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a> <a href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a>
{% endfor %} {% endfor %}
</address> </address>
</footer><!-- /.post-info --> </footer>
<div class="entry-content"> {{ article.summary }} </div><!-- /.entry-content --> </article>
</article></li>
{% endfor %} {% endfor %}
</ol><!-- /#posts-list -->
{% if articles_page.has_other_pages() %} {% if articles_page.has_other_pages() %}
{% include 'pagination.html' %} {% include 'pagination.html' %}
{% endif %} {% endif %}
</section><!-- /#content -->
{% endblock content %} {% endblock content %}

View file

@ -13,15 +13,21 @@
{% endblock %} {% endblock %}
{% block content %} {% block content %}
<h1>{{ page.title }}</h1> <article>
<header>
<h2>{{ page.title }}</h2>
</header>
{% import 'translations.html' as translations with context %} {% import 'translations.html' as translations with context %}
{{ translations.translations_for(page) }} {{ translations.translations_for(page) }}
{{ page.content }} {{ page.content }}
{% if page.modified %} {% if page.modified %}
<footer>
<p> <p>
Last updated: {{ page.locale_modified }} Last updated: {{ page.locale_modified }}
</p> </p>
</footer>
{% endif %} {% endif %}
</article>
{% endblock %} {% endblock %}

View file

@ -1,15 +1,17 @@
{% if DEFAULT_PAGINATION %} {% if DEFAULT_PAGINATION %}
{% set first_page = articles_paginator.page(1) %} {% set first_page = articles_paginator.page(1) %}
{% set last_page = articles_paginator.page(articles_paginator.num_pages) %} {% set last_page = articles_paginator.page(articles_paginator.num_pages) %}
<p class="paginator"> <nav>
<ul>
{% if articles_page.has_previous() %} {% if articles_page.has_previous() %}
<a href="{{ SITEURL }}/{{ first_page.url }}">&#8647;</a> <li><a href="{{ SITEURL }}/{{ first_page.url }}">&Lang;</a></li>
<a href="{{ SITEURL }}/{{ articles_previous_page.url }}">&laquo;</a> <li><a href="{{ SITEURL }}/{{ articles_previous_page.url }}">&lang;</a></li>
{% endif %} {% endif %}
Page {{ articles_page.number }} / {{ articles_paginator.num_pages }} <li>Page {{ articles_page.number }} / {{ articles_paginator.num_pages }}</li>
{% if articles_page.has_next() %} {% if articles_page.has_next() %}
<a href="{{ SITEURL }}/{{ articles_next_page.url }}">&raquo;</a> <li><a href="{{ SITEURL }}/{{ articles_next_page.url }}">&rang;</a></li>
<a href="{{ SITEURL }}/{{ last_page.url }}">&#8649;</a> <li><a href="{{ SITEURL }}/{{ last_page.url }}">&Rang;</a></li>
{% endif %} {% endif %}
</p> </ul>
</nav>
{% endif %} {% endif %}

View file

@ -3,7 +3,7 @@
{% block title %}{{ SITENAME|striptags }} - {{ period | reverse | join(' ') }} archives{% endblock %} {% block title %}{{ SITENAME|striptags }} - {{ period | reverse | join(' ') }} archives{% endblock %}
{% block content %} {% block content %}
<h1>Archives for {{ period | reverse | join(' ') }}</h1> <h2>Archives for {{ period | reverse | join(' ') }}</h2>
<dl> <dl>
{% for article in dates %} {% for article in dates %}

View file

@ -3,5 +3,5 @@
{% block title %}{{ SITENAME|striptags }} - {{ tag }} tag{% endblock %} {% block title %}{{ SITENAME|striptags }} - {{ tag }} tag{% endblock %}
{% block content_title %} {% block content_title %}
<h1>Articles tagged with {{ tag }}</h1> <h2>Articles tagged with {{ tag }}</h2>
{% endblock %} {% endblock %}

View file

@ -3,7 +3,7 @@
{% block title %}{{ SITENAME|striptags }} - Tags{% endblock %} {% block title %}{{ SITENAME|striptags }} - Tags{% endblock %}
{% block content %} {% block content %}
<h1>Tags for {{ SITENAME }}</h1> <h2>Tags for {{ SITENAME }}</h2>
<ul> <ul>
{% for tag, articles in tags|sort %} {% for tag, articles in tags|sort %}
<li><a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a> ({{ articles|count }})</li> <li><a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a> ({{ articles|count }})</li>