forked from github/pelican
Merge pull request #2352 from Shir0kamii/clean-simple-theme
Add enhancements to Simple theme
This commit is contained in:
commit
80f212cc60
11 changed files with 63 additions and 25 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<title>A Pelican Blog</title>
|
<title>A Pelican Blog - Categories</title>
|
||||||
<link rel="stylesheet" href="/theme/css/main.css" />
|
<link rel="stylesheet" href="/theme/css/main.css" />
|
||||||
<link href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="A Pelican Blog Atom Feed" />
|
<link href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="A Pelican Blog Atom Feed" />
|
||||||
</head>
|
</head>
|
||||||
|
|
@ -21,10 +21,10 @@
|
||||||
</ul></nav>
|
</ul></nav>
|
||||||
</header><!-- /#banner -->
|
</header><!-- /#banner -->
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="/category/bar.html">bar</a></li>
|
<li><a href="/category/bar.html">bar</a> (1)</li>
|
||||||
<li><a href="/category/cat1.html">cat1</a></li>
|
<li><a href="/category/cat1.html">cat1</a> (4)</li>
|
||||||
<li><a href="/category/misc.html">misc</a></li>
|
<li><a href="/category/misc.html">misc</a> (4)</li>
|
||||||
<li><a href="/category/yeah.html">yeah</a></li>
|
<li><a href="/category/yeah.html">yeah</a> (1)</li>
|
||||||
</ul>
|
</ul>
|
||||||
<section id="extras" class="body">
|
<section id="extras" class="body">
|
||||||
<div class="social">
|
<div class="social">
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<title>Alexis' log</title>
|
<title>Alexis' log - Categories</title>
|
||||||
<link rel="stylesheet" href="./theme/css/main.css" />
|
<link rel="stylesheet" href="./theme/css/main.css" />
|
||||||
<link href="http://blog.notmyidea.org/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="Alexis' log Atom Feed" />
|
<link href="http://blog.notmyidea.org/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="Alexis' log Atom Feed" />
|
||||||
<link href="http://blog.notmyidea.org/feeds/all.rss.xml" type="application/rss+xml" rel="alternate" title="Alexis' log RSS Feed" />
|
<link href="http://blog.notmyidea.org/feeds/all.rss.xml" type="application/rss+xml" rel="alternate" title="Alexis' log RSS Feed" />
|
||||||
|
|
@ -25,10 +25,10 @@
|
||||||
</ul></nav>
|
</ul></nav>
|
||||||
</header><!-- /#banner -->
|
</header><!-- /#banner -->
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="./category/yeah.html">yeah</a></li>
|
<li><a href="./category/bar.html">bar</a> (1)</li>
|
||||||
<li><a href="./category/misc.html">misc</a></li>
|
<li><a href="./category/cat1.html">cat1</a> (4)</li>
|
||||||
<li><a href="./category/cat1.html">cat1</a></li>
|
<li><a href="./category/misc.html">misc</a> (4)</li>
|
||||||
<li><a href="./category/bar.html">bar</a></li>
|
<li><a href="./category/yeah.html">yeah</a> (1)</li>
|
||||||
</ul>
|
</ul>
|
||||||
<section id="extras" class="body">
|
<section id="extras" class="body">
|
||||||
<div class="blogroll">
|
<div class="blogroll">
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<title>Alexis' log</title>
|
<title>Alexis' log - Categories</title>
|
||||||
<link rel="stylesheet" href="./theme/css/main.css" />
|
<link rel="stylesheet" href="./theme/css/main.css" />
|
||||||
<link href="http://blog.notmyidea.org/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="Alexis' log Atom Feed" />
|
<link href="http://blog.notmyidea.org/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="Alexis' log Atom Feed" />
|
||||||
<link href="http://blog.notmyidea.org/feeds/all.rss.xml" type="application/rss+xml" rel="alternate" title="Alexis' log RSS Feed" />
|
<link href="http://blog.notmyidea.org/feeds/all.rss.xml" type="application/rss+xml" rel="alternate" title="Alexis' log RSS Feed" />
|
||||||
|
|
@ -25,10 +25,10 @@
|
||||||
</ul></nav>
|
</ul></nav>
|
||||||
</header><!-- /#banner -->
|
</header><!-- /#banner -->
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="./category/yeah.html">yeah</a></li>
|
<li><a href="./category/bar.html">bar</a> (1)</li>
|
||||||
<li><a href="./category/misc.html">misc</a></li>
|
<li><a href="./category/cat1.html">cat1</a> (4)</li>
|
||||||
<li><a href="./category/cat1.html">cat1</a></li>
|
<li><a href="./category/misc.html">misc</a> (4)</li>
|
||||||
<li><a href="./category/bar.html">bar</a></li>
|
<li><a href="./category/yeah.html">yeah</a> (1)</li>
|
||||||
</ul>
|
</ul>
|
||||||
<section id="extras" class="body">
|
<section id="extras" class="body">
|
||||||
<div class="blogroll">
|
<div class="blogroll">
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,7 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
|
|
||||||
|
{% block title %}{{ SITENAME }} - Archives{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h1>Archives for {{ SITENAME }}</h1>
|
<h1>Archives for {{ SITENAME }}</h1>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,7 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
|
|
||||||
|
{% block title %}{{ SITENAME }} - {{ article.title }}{% endblock %}
|
||||||
|
|
||||||
{% block head %}
|
{% block head %}
|
||||||
{{ super() }}
|
{{ super() }}
|
||||||
{% if article.description %}
|
{% if article.description %}
|
||||||
|
|
@ -24,17 +27,30 @@
|
||||||
<time class="published" datetime="{{ article.date.isoformat() }}">
|
<time class="published" datetime="{{ article.date.isoformat() }}">
|
||||||
{{ article.locale_date }}
|
{{ article.locale_date }}
|
||||||
</time>
|
</time>
|
||||||
{% if article.modified %}
|
{% if article.modified %}
|
||||||
<time class="modified" datetime="{{ article.modified.isoformat() }}">
|
<time class="modified" datetime="{{ article.modified.isoformat() }}">
|
||||||
{{ article.locale_modified }}
|
{{ article.locale_modified }}
|
||||||
</time>
|
</time>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if article.authors %}
|
{% if article.authors %}
|
||||||
<address class="vcard author">
|
<address class="vcard author">
|
||||||
By {% for author in article.authors %}
|
By {% for author in article.authors %}
|
||||||
<a class="url fn" href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a>
|
<a class="url fn" href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</address>
|
</address>
|
||||||
|
{% if article.category %}
|
||||||
|
<div class="category">
|
||||||
|
Category: <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
{% if article.tags %}
|
||||||
|
<div class="tags">
|
||||||
|
Tags:
|
||||||
|
{% for tag in article.tags %}
|
||||||
|
<a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a>
|
||||||
|
{% endfor %}
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</footer><!-- /.post-info -->
|
</footer><!-- /.post-info -->
|
||||||
<div class="entry-content">
|
<div class="entry-content">
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
{% extends "index.html" %}
|
{% extends "index.html" %}
|
||||||
|
|
||||||
{% block title %}{{ SITENAME }} - Articles by {{ author }}{% endblock %}
|
{% block title %}{{ SITENAME }} - Articles by {{ author }}{% endblock %}
|
||||||
|
|
||||||
{% block content_title %}
|
{% block content_title %}
|
||||||
<h2>Articles by {{ author }}</h2>
|
<h2>Articles by {{ author }}</h2>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,11 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
|
|
||||||
|
{% block title %}{{ SITENAME }} - Categories{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<ul>
|
<ul>
|
||||||
{% for category, articles in categories %}
|
{% for category, articles in categories|sort %}
|
||||||
<li><a href="{{ SITEURL }}/{{ category.url }}">{{ category }}</a></li>
|
<li><a href="{{ SITEURL }}/{{ category.url }}">{{ category }}</a> ({{ articles|count }})</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,7 @@
|
||||||
{% extends "index.html" %}
|
{% extends "index.html" %}
|
||||||
|
|
||||||
|
{% block title %}{{ SITENAME }} - {{ category }} category{% endblock %}
|
||||||
|
|
||||||
{% block content_title %}
|
{% block content_title %}
|
||||||
<h2>Articles in the {{ category }} category</h2>
|
<h2>Articles in the {{ category }} category</h2>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,7 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
{% block title %}{{ page.title }}{%endblock%}
|
|
||||||
|
{% block title %}{{ SITENAME }} - {{ page.title }}{%endblock%}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h1>{{ page.title }}</h1>
|
<h1>{{ page.title }}</h1>
|
||||||
{% import 'translations.html' as translations with context %}
|
{% import 'translations.html' as translations with context %}
|
||||||
|
|
@ -7,9 +9,9 @@
|
||||||
|
|
||||||
{{ page.content }}
|
{{ page.content }}
|
||||||
|
|
||||||
{% if page.modified %}
|
{% if page.modified %}
|
||||||
<p>
|
<p>
|
||||||
Last updated: {{ page.locale_modified }}
|
Last updated: {{ page.locale_modified }}
|
||||||
</p>
|
</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,7 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
|
|
||||||
|
{% block title %}{{ SITENAME }} - {{ period | reverse | join(' ') }} archives{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h1>Archives for {{ period | reverse | join(' ') }}</h1>
|
<h1>Archives for {{ period | reverse | join(' ') }}</h1>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,7 @@
|
||||||
|
{% extends "index.html" %}
|
||||||
|
|
||||||
|
{% block title %}{{ SITENAME }} - {{ tag }} tag{% endblock %}
|
||||||
|
|
||||||
|
{% block content_title %}
|
||||||
|
<h2>Articles tagged with {{ tag }}</h2>
|
||||||
|
{% endblock %}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue