forked from github/pelican
Merge pull request #3234 from pauloxnet/feature/3233-simple-classless-semantic-html
This commit is contained in:
commit
be5afa3175
27 changed files with 163 additions and 119 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -17,3 +17,4 @@ samples/output
|
|||
*.pem
|
||||
*.lock
|
||||
.pdm-python
|
||||
.venv
|
||||
|
|
|
|||
|
|
@ -1231,6 +1231,12 @@ Following are example ways to specify your preferred theme::
|
|||
# Specify a customized theme, via absolute path
|
||||
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.
|
||||
Feel free to use them in your themes as well.
|
||||
|
||||
|
|
|
|||
|
|
@ -120,11 +120,13 @@
|
|||
<p>There are <a href="../article-1.html#disqus_thread">comments</a>.</p> </div><!-- /.entry-content -->
|
||||
</article></li>
|
||||
</ol><!-- /#posts-list -->
|
||||
<p class="paginator">
|
||||
Page 1 / 3
|
||||
<a href="../author/alexis-metaireau2.html">»</a>
|
||||
<a href="../author/alexis-metaireau3.html">⇉</a>
|
||||
</p>
|
||||
<nav>
|
||||
<ul>
|
||||
<li>Page 1 / 3</li>
|
||||
<li><a href="../author/alexis-metaireau2.html">⟩</a></li>
|
||||
<li><a href="../author/alexis-metaireau3.html">⟫</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</section><!-- /#content -->
|
||||
<section id="extras" class="body">
|
||||
<div class="blogroll">
|
||||
|
|
|
|||
|
|
@ -133,13 +133,15 @@ YEAH !</p>
|
|||
<p>There are <a href="../oh-yeah.html#disqus_thread">comments</a>.</p> </div><!-- /.entry-content -->
|
||||
</article></li>
|
||||
</ol><!-- /#posts-list -->
|
||||
<p class="paginator">
|
||||
<a href="../author/alexis-metaireau.html">⇇</a>
|
||||
<a href="../author/alexis-metaireau.html">«</a>
|
||||
Page 2 / 3
|
||||
<a href="../author/alexis-metaireau3.html">»</a>
|
||||
<a href="../author/alexis-metaireau3.html">⇉</a>
|
||||
</p>
|
||||
<nav>
|
||||
<ul>
|
||||
<li><a href="../author/alexis-metaireau.html">⟪</a></li>
|
||||
<li><a href="../author/alexis-metaireau.html">⟨</a></li>
|
||||
<li>Page 2 / 3</li>
|
||||
<li><a href="../author/alexis-metaireau3.html">⟩</a></li>
|
||||
<li><a href="../author/alexis-metaireau3.html">⟫</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</section><!-- /#content -->
|
||||
<section id="extras" class="body">
|
||||
<div class="blogroll">
|
||||
|
|
|
|||
|
|
@ -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 -->
|
||||
</article></li>
|
||||
</ol><!-- /#posts-list -->
|
||||
<p class="paginator">
|
||||
<a href="../author/alexis-metaireau.html">⇇</a>
|
||||
<a href="../author/alexis-metaireau2.html">«</a>
|
||||
Page 3 / 3
|
||||
</p>
|
||||
<nav>
|
||||
<ul>
|
||||
<li><a href="../author/alexis-metaireau.html">⟪</a></li>
|
||||
<li><a href="../author/alexis-metaireau2.html">⟨</a></li>
|
||||
<li>Page 3 / 3</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</section><!-- /#content -->
|
||||
<section id="extras" class="body">
|
||||
<div class="blogroll">
|
||||
|
|
|
|||
12
pelican/tests/output/custom/index.html
vendored
12
pelican/tests/output/custom/index.html
vendored
|
|
@ -120,11 +120,13 @@
|
|||
<p>There are <a href="./article-1.html#disqus_thread">comments</a>.</p> </div><!-- /.entry-content -->
|
||||
</article></li>
|
||||
</ol><!-- /#posts-list -->
|
||||
<p class="paginator">
|
||||
Page 1 / 3
|
||||
<a href="./index2.html">»</a>
|
||||
<a href="./index3.html">⇉</a>
|
||||
</p>
|
||||
<nav>
|
||||
<ul>
|
||||
<li>Page 1 / 3</li>
|
||||
<li><a href="./index2.html">⟩</a></li>
|
||||
<li><a href="./index3.html">⟫</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</section><!-- /#content -->
|
||||
<section id="extras" class="body">
|
||||
<div class="blogroll">
|
||||
|
|
|
|||
16
pelican/tests/output/custom/index2.html
vendored
16
pelican/tests/output/custom/index2.html
vendored
|
|
@ -133,13 +133,15 @@ YEAH !</p>
|
|||
<p>There are <a href="./oh-yeah.html#disqus_thread">comments</a>.</p> </div><!-- /.entry-content -->
|
||||
</article></li>
|
||||
</ol><!-- /#posts-list -->
|
||||
<p class="paginator">
|
||||
<a href="./index.html">⇇</a>
|
||||
<a href="./index.html">«</a>
|
||||
Page 2 / 3
|
||||
<a href="./index3.html">»</a>
|
||||
<a href="./index3.html">⇉</a>
|
||||
</p>
|
||||
<nav>
|
||||
<ul>
|
||||
<li><a href="./index.html">⟪</a></li>
|
||||
<li><a href="./index.html">⟨</a></li>
|
||||
<li>Page 2 / 3</li>
|
||||
<li><a href="./index3.html">⟩</a></li>
|
||||
<li><a href="./index3.html">⟫</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</section><!-- /#content -->
|
||||
<section id="extras" class="body">
|
||||
<div class="blogroll">
|
||||
|
|
|
|||
12
pelican/tests/output/custom/index3.html
vendored
12
pelican/tests/output/custom/index3.html
vendored
|
|
@ -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 -->
|
||||
</article></li>
|
||||
</ol><!-- /#posts-list -->
|
||||
<p class="paginator">
|
||||
<a href="./index.html">⇇</a>
|
||||
<a href="./index2.html">«</a>
|
||||
Page 3 / 3
|
||||
</p>
|
||||
<nav>
|
||||
<ul>
|
||||
<li><a href="./index.html">⟪</a></li>
|
||||
<li><a href="./index2.html">⟨</a></li>
|
||||
<li>Page 3 / 3</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</section><!-- /#content -->
|
||||
<section id="extras" class="body">
|
||||
<div class="blogroll">
|
||||
|
|
|
|||
|
|
@ -120,11 +120,13 @@
|
|||
<p>There are <a href="../posts/2011/février/17/article-1/#disqus_thread">comments</a>.</p> </div><!-- /.entry-content -->
|
||||
</article></li>
|
||||
</ol><!-- /#posts-list -->
|
||||
<p class="paginator">
|
||||
Page 1 / 3
|
||||
<a href="../author/alexis-metaireau2.html">»</a>
|
||||
<a href="../author/alexis-metaireau3.html">⇉</a>
|
||||
</p>
|
||||
<nav>
|
||||
<ul>
|
||||
<li>Page 1 / 3</li>
|
||||
<li><a href="../author/alexis-metaireau2.html">⟩</a></li>
|
||||
<li><a href="../author/alexis-metaireau3.html">⟫</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</section><!-- /#content -->
|
||||
<section id="extras" class="body">
|
||||
<div class="blogroll">
|
||||
|
|
|
|||
|
|
@ -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 -->
|
||||
</article></li>
|
||||
</ol><!-- /#posts-list -->
|
||||
<p class="paginator">
|
||||
<a href="../author/alexis-metaireau.html">⇇</a>
|
||||
<a href="../author/alexis-metaireau.html">«</a>
|
||||
Page 2 / 3
|
||||
<a href="../author/alexis-metaireau3.html">»</a>
|
||||
<a href="../author/alexis-metaireau3.html">⇉</a>
|
||||
</p>
|
||||
<nav>
|
||||
<ul>
|
||||
<li><a href="../author/alexis-metaireau.html">⟪</a></li>
|
||||
<li><a href="../author/alexis-metaireau.html">⟨</a></li>
|
||||
<li>Page 2 / 3</li>
|
||||
<li><a href="../author/alexis-metaireau3.html">⟩</a></li>
|
||||
<li><a href="../author/alexis-metaireau3.html">⟫</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</section><!-- /#content -->
|
||||
<section id="extras" class="body">
|
||||
<div class="blogroll">
|
||||
|
|
|
|||
|
|
@ -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 -->
|
||||
</article></li>
|
||||
</ol><!-- /#posts-list -->
|
||||
<p class="paginator">
|
||||
<a href="../author/alexis-metaireau.html">⇇</a>
|
||||
<a href="../author/alexis-metaireau2.html">«</a>
|
||||
Page 3 / 3
|
||||
</p>
|
||||
<nav>
|
||||
<ul>
|
||||
<li><a href="../author/alexis-metaireau.html">⟪</a></li>
|
||||
<li><a href="../author/alexis-metaireau2.html">⟨</a></li>
|
||||
<li>Page 3 / 3</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</section><!-- /#content -->
|
||||
<section id="extras" class="body">
|
||||
<div class="blogroll">
|
||||
|
|
|
|||
12
pelican/tests/output/custom_locale/index.html
vendored
12
pelican/tests/output/custom_locale/index.html
vendored
|
|
@ -120,11 +120,13 @@
|
|||
<p>There are <a href="./posts/2011/février/17/article-1/#disqus_thread">comments</a>.</p> </div><!-- /.entry-content -->
|
||||
</article></li>
|
||||
</ol><!-- /#posts-list -->
|
||||
<p class="paginator">
|
||||
Page 1 / 3
|
||||
<a href="./index2.html">»</a>
|
||||
<a href="./index3.html">⇉</a>
|
||||
</p>
|
||||
<nav>
|
||||
<ul>
|
||||
<li>Page 1 / 3</li>
|
||||
<li><a href="./index2.html">⟩</a></li>
|
||||
<li><a href="./index3.html">⟫</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</section><!-- /#content -->
|
||||
<section id="extras" class="body">
|
||||
<div class="blogroll">
|
||||
|
|
|
|||
16
pelican/tests/output/custom_locale/index2.html
vendored
16
pelican/tests/output/custom_locale/index2.html
vendored
|
|
@ -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 -->
|
||||
</article></li>
|
||||
</ol><!-- /#posts-list -->
|
||||
<p class="paginator">
|
||||
<a href="./index.html">⇇</a>
|
||||
<a href="./index.html">«</a>
|
||||
Page 2 / 3
|
||||
<a href="./index3.html">»</a>
|
||||
<a href="./index3.html">⇉</a>
|
||||
</p>
|
||||
<nav>
|
||||
<ul>
|
||||
<li><a href="./index.html">⟪</a></li>
|
||||
<li><a href="./index.html">⟨</a></li>
|
||||
<li>Page 2 / 3</li>
|
||||
<li><a href="./index3.html">⟩</a></li>
|
||||
<li><a href="./index3.html">⟫</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</section><!-- /#content -->
|
||||
<section id="extras" class="body">
|
||||
<div class="blogroll">
|
||||
|
|
|
|||
12
pelican/tests/output/custom_locale/index3.html
vendored
12
pelican/tests/output/custom_locale/index3.html
vendored
|
|
@ -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 -->
|
||||
</article></li>
|
||||
</ol><!-- /#posts-list -->
|
||||
<p class="paginator">
|
||||
<a href="./index.html">⇇</a>
|
||||
<a href="./index2.html">«</a>
|
||||
Page 3 / 3
|
||||
</p>
|
||||
<nav>
|
||||
<ul>
|
||||
<li><a href="./index.html">⟪</a></li>
|
||||
<li><a href="./index2.html">⟨</a></li>
|
||||
<li>Page 3 / 3</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</section><!-- /#content -->
|
||||
<section id="extras" class="body">
|
||||
<div class="blogroll">
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
{% block title %}{{ SITENAME|striptags }} - Archives{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Archives for {{ SITENAME }}</h1>
|
||||
<h2>Archives for {{ SITENAME }}</h2>
|
||||
|
||||
<dl>
|
||||
{% for article in dates %}
|
||||
|
|
|
|||
32
pelican/themes/simple/templates/article.html
vendored
32
pelican/themes/simple/templates/article.html
vendored
|
|
@ -22,44 +22,44 @@
|
|||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<article>
|
||||
<header>
|
||||
<h1 class="entry-title">
|
||||
<h2>
|
||||
<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 %}
|
||||
{{ translations.translations_for(article) }}
|
||||
</header>
|
||||
<footer class="post-info">
|
||||
<time class="published" datetime="{{ article.date.isoformat() }}">
|
||||
{{ article.content }}
|
||||
<footer>
|
||||
<p>Published: <time datetime="{{ article.date.isoformat() }}">
|
||||
{{ article.locale_date }}
|
||||
</time>
|
||||
</time></p>
|
||||
{% if article.modified %}
|
||||
<time class="modified" datetime="{{ article.modified.isoformat() }}">
|
||||
<p>Last updated: <time datetime="{{ article.modified.isoformat() }}">
|
||||
{{ article.locale_modified }}
|
||||
</time>
|
||||
</time></p>
|
||||
{% endif %}
|
||||
{% if article.authors %}
|
||||
<address class="vcard author">
|
||||
<address>
|
||||
By {% for author in article.authors %}
|
||||
<a class="url fn" href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a>
|
||||
<a href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a>
|
||||
{% endfor %}
|
||||
</address>
|
||||
{% endif %}
|
||||
{% if article.category %}
|
||||
<div class="category">
|
||||
<p>
|
||||
Category: <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>
|
||||
</div>
|
||||
</p>
|
||||
{% endif %}
|
||||
{% if article.tags %}
|
||||
<div class="tags">
|
||||
<p>
|
||||
Tags:
|
||||
{% for tag in article.tags %}
|
||||
<a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</p>
|
||||
{% endif %}
|
||||
</footer><!-- /.post-info -->
|
||||
<article>
|
||||
{{ article.content }}
|
||||
</footer>
|
||||
</article>
|
||||
{% endblock %}
|
||||
|
|
|
|||
2
pelican/themes/simple/templates/author.html
vendored
2
pelican/themes/simple/templates/author.html
vendored
|
|
@ -3,5 +3,5 @@
|
|||
{% block title %}{{ SITENAME|striptags }} - Articles by {{ author }}{% endblock %}
|
||||
|
||||
{% block content_title %}
|
||||
<h1>Articles by {{ author }}</h1>
|
||||
<h2>Articles by {{ author }}</h2>
|
||||
{% endblock %}
|
||||
|
|
|
|||
2
pelican/themes/simple/templates/authors.html
vendored
2
pelican/themes/simple/templates/authors.html
vendored
|
|
@ -3,7 +3,7 @@
|
|||
{% block title %}{{ SITENAME|striptags }} - Authors{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Authors on {{ SITENAME }}</h1>
|
||||
<h2>Authors on {{ SITENAME }}</h2>
|
||||
<ul>
|
||||
{% for author, articles in authors|sort %}
|
||||
<li><a href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a> ({{ articles|count }})</li>
|
||||
|
|
|
|||
18
pelican/themes/simple/templates/base.html
vendored
18
pelican/themes/simple/templates/base.html
vendored
|
|
@ -6,6 +6,12 @@
|
|||
<meta charset="utf-8" />
|
||||
<meta name="generator" content="Pelican" />
|
||||
<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 %}
|
||||
<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 %}
|
||||
|
|
@ -35,32 +41,32 @@
|
|||
|
||||
<body>
|
||||
<header>
|
||||
<h1><a href="{{ SITEURL }}/">{{ SITENAME }}{% if SITESUBTITLE %} <strong>{{ SITESUBTITLE }}</strong>{% endif %}</a></h1>
|
||||
</header>
|
||||
<hgroup><h1><a href="{{ SITEURL }}/">{{ SITENAME }}</a></h1>{% if SITESUBTITLE %}<p>{{ SITESUBTITLE }}</p>{% endif %}</hgroup>
|
||||
<nav><ul>
|
||||
{% for title, link in MENUITEMS %}
|
||||
<li><a href="{{ link }}">{{ title }}</a></li>
|
||||
{% endfor %}
|
||||
{% if DISPLAY_PAGES_ON_MENU %}
|
||||
{% 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 %}
|
||||
{% endif %}
|
||||
{% if DISPLAY_CATEGORIES_ON_MENU %}
|
||||
{% 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 %}
|
||||
{% endif %}
|
||||
</ul></nav>
|
||||
</header>
|
||||
<main>
|
||||
{% block content %}
|
||||
{% endblock %}
|
||||
</main>
|
||||
<footer>
|
||||
<address id="about" class="vcard body">
|
||||
<address>
|
||||
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>.
|
||||
</address><!-- /#about -->
|
||||
</address>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
{% block title %}{{ SITENAME|striptags }} - Categories{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Categories on {{ SITENAME }}</h1>
|
||||
<h2>Categories on {{ SITENAME }}</h2>
|
||||
<ul>
|
||||
{% for category, articles in categories|sort %}
|
||||
<li><a href="{{ SITEURL }}/{{ category.url }}">{{ category }}</a> ({{ articles|count }})</li>
|
||||
|
|
|
|||
|
|
@ -3,5 +3,5 @@
|
|||
{% block title %}{{ SITENAME|striptags }} - {{ category }} category{% endblock %}
|
||||
|
||||
{% block content_title %}
|
||||
<h1>Articles in the {{ category }} category</h1>
|
||||
<h2>Articles in the {{ category }} category</h2>
|
||||
{% endblock %}
|
||||
|
|
|
|||
25
pelican/themes/simple/templates/index.html
vendored
25
pelican/themes/simple/templates/index.html
vendored
|
|
@ -1,28 +1,27 @@
|
|||
{% extends "base.html" %}
|
||||
{% block content %}
|
||||
<section id="content">
|
||||
{% block content_title %}
|
||||
<h2>All articles</h2>
|
||||
{% endblock %}
|
||||
|
||||
<ol id="post-list">
|
||||
|
||||
{% for article in articles_page.object_list %}
|
||||
<li><article class="hentry">
|
||||
<header> <h2 class="entry-title"><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h2> </header>
|
||||
<footer class="post-info">
|
||||
<time class="published" datetime="{{ article.date.isoformat() }}"> {{ article.locale_date }} </time>
|
||||
<address class="vcard author">By
|
||||
<article>
|
||||
<header> <h2><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h2> </header>
|
||||
<section>{{ article.summary }}</section>
|
||||
<footer>
|
||||
<p>Published: <time datetime="{{ article.date.isoformat() }}"> {{ article.locale_date }} </time></p>
|
||||
<address>By
|
||||
{% for author in article.authors %}
|
||||
<a class="url fn" href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a>
|
||||
<a href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a>
|
||||
{% endfor %}
|
||||
</address>
|
||||
</footer><!-- /.post-info -->
|
||||
<div class="entry-content"> {{ article.summary }} </div><!-- /.entry-content -->
|
||||
</article></li>
|
||||
</footer>
|
||||
</article>
|
||||
{% endfor %}
|
||||
</ol><!-- /#posts-list -->
|
||||
|
||||
{% if articles_page.has_other_pages() %}
|
||||
{% include 'pagination.html' %}
|
||||
{% endif %}
|
||||
</section><!-- /#content -->
|
||||
|
||||
{% endblock content %}
|
||||
|
|
|
|||
8
pelican/themes/simple/templates/page.html
vendored
8
pelican/themes/simple/templates/page.html
vendored
|
|
@ -13,15 +13,21 @@
|
|||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>{{ page.title }}</h1>
|
||||
<article>
|
||||
<header>
|
||||
<h2>{{ page.title }}</h2>
|
||||
</header>
|
||||
{% import 'translations.html' as translations with context %}
|
||||
{{ translations.translations_for(page) }}
|
||||
|
||||
{{ page.content }}
|
||||
|
||||
{% if page.modified %}
|
||||
<footer>
|
||||
<p>
|
||||
Last updated: {{ page.locale_modified }}
|
||||
</p>
|
||||
</footer>
|
||||
{% endif %}
|
||||
</article>
|
||||
{% endblock %}
|
||||
|
|
|
|||
16
pelican/themes/simple/templates/pagination.html
vendored
16
pelican/themes/simple/templates/pagination.html
vendored
|
|
@ -1,15 +1,17 @@
|
|||
{% if DEFAULT_PAGINATION %}
|
||||
{% set first_page = articles_paginator.page(1) %}
|
||||
{% set last_page = articles_paginator.page(articles_paginator.num_pages) %}
|
||||
<p class="paginator">
|
||||
<nav>
|
||||
<ul>
|
||||
{% if articles_page.has_previous() %}
|
||||
<a href="{{ SITEURL }}/{{ first_page.url }}">⇇</a>
|
||||
<a href="{{ SITEURL }}/{{ articles_previous_page.url }}">«</a>
|
||||
<li><a href="{{ SITEURL }}/{{ first_page.url }}">⟪</a></li>
|
||||
<li><a href="{{ SITEURL }}/{{ articles_previous_page.url }}">⟨</a></li>
|
||||
{% endif %}
|
||||
Page {{ articles_page.number }} / {{ articles_paginator.num_pages }}
|
||||
<li>Page {{ articles_page.number }} / {{ articles_paginator.num_pages }}</li>
|
||||
{% if articles_page.has_next() %}
|
||||
<a href="{{ SITEURL }}/{{ articles_next_page.url }}">»</a>
|
||||
<a href="{{ SITEURL }}/{{ last_page.url }}">⇉</a>
|
||||
<li><a href="{{ SITEURL }}/{{ articles_next_page.url }}">⟩</a></li>
|
||||
<li><a href="{{ SITEURL }}/{{ last_page.url }}">⟫</a></li>
|
||||
{% endif %}
|
||||
</p>
|
||||
</ul>
|
||||
</nav>
|
||||
{% endif %}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
{% block title %}{{ SITENAME|striptags }} - {{ period | reverse | join(' ') }} archives{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Archives for {{ period | reverse | join(' ') }}</h1>
|
||||
<h2>Archives for {{ period | reverse | join(' ') }}</h2>
|
||||
|
||||
<dl>
|
||||
{% for article in dates %}
|
||||
|
|
|
|||
2
pelican/themes/simple/templates/tag.html
vendored
2
pelican/themes/simple/templates/tag.html
vendored
|
|
@ -3,5 +3,5 @@
|
|||
{% block title %}{{ SITENAME|striptags }} - {{ tag }} tag{% endblock %}
|
||||
|
||||
{% block content_title %}
|
||||
<h1>Articles tagged with {{ tag }}</h1>
|
||||
<h2>Articles tagged with {{ tag }}</h2>
|
||||
{% endblock %}
|
||||
|
|
|
|||
2
pelican/themes/simple/templates/tags.html
vendored
2
pelican/themes/simple/templates/tags.html
vendored
|
|
@ -3,7 +3,7 @@
|
|||
{% block title %}{{ SITENAME|striptags }} - Tags{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Tags for {{ SITENAME }}</h1>
|
||||
<h2>Tags for {{ SITENAME }}</h2>
|
||||
<ul>
|
||||
{% for tag, articles in tags|sort %}
|
||||
<li><a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a> ({{ articles|count }})</li>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue