forked from duilio/pelican-octopress-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added missing templates, consistent site title on all pages
new templates: - author.html - authors.html - category.html - categories.html - period_archives.html - tags.html updated template: - archives.html: site title - article.html: site title - page.html: site title - tag.html: extend base.html instead of index.html give the page a proper look as well as a explaining <h1> (author.html + category.html share the same look, just the explaining <h1> differs)
- Loading branch information
1 parent
7792e32
commit 3322633
Showing
10 changed files
with
193 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{% extends "base.html" %} | ||
{% block title %}Author: {{ author }} — {{ SITENAME }}{% endblock %} | ||
{% block content %} | ||
<div> | ||
<article role="article"> | ||
<header> | ||
<h1 class="entry-title">Author: {{ author }}</h1> | ||
</header> | ||
|
||
<div id="blog-archives"> | ||
{% for year, date_year in dates|groupby('date.year')|sort(reverse=NEWEST_FIRST_ARCHIVES) %} | ||
<h2>{{ year }}</h2> | ||
{% for month, articles in date_year|groupby('date.month')|sort(reverse=NEWEST_FIRST_ARCHIVES) %} | ||
{% for article in articles %} | ||
<article> | ||
<h1><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></h1> | ||
<time datetime="{{ article.date }}" pubdate> | ||
<span class="month">{{ article.date.strftime('%B')[:3] }}</span> | ||
<span class="day">{{ article.date.strftime('%d') }}</span> | ||
<span class="year">{{ article.date.strftime('%Y') }}</span> | ||
</time> | ||
<footer> | ||
<span class="categories">posted in | ||
<a class='category' href='{{ SITEURL }}/{{ article.category.url }}'>{{ article.category }}</a> | ||
</span> | ||
{% include '_includes/article_stats.html' %} | ||
</footer> | ||
</article> | ||
{% endfor %} | ||
{% endfor %} | ||
{% endfor %} | ||
</div> | ||
</article> | ||
</div> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{% extends "base.html" %} | ||
{% block title %}Authors — {{ SITENAME }}{% endblock %} | ||
{% block content %} | ||
<div> | ||
<article role="article"> | ||
<header> | ||
<h1 class="entry-title">Blog Authors</h1> | ||
</header> | ||
|
||
{% for author, articles in authors|sort %} | ||
<p><a href="{{ SITEURL }}/{{ author.url }}">{{ author.name }}</a> ({{ articles|count }})</p> | ||
{% endfor %} | ||
</article> | ||
</div> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{% extends "base.html" %} | ||
{% block title %}Categories — {{ SITENAME }}{% endblock %} | ||
{% block content %} | ||
<div> | ||
<article role="article"> | ||
<header> | ||
<h1 class="entry-title">Blog Categories</h1> | ||
</header> | ||
|
||
<p> | ||
{% for category, articles in categories|sort %} | ||
<a href="{{ SITEURL }}/{{ category.url }}">{{ category.name }}</a> ({{ articles|count }})<br> | ||
{% endfor %} | ||
</p> | ||
</article> | ||
</div> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{% extends "base.html" %} | ||
{% block title %}Category: {{ category }} — {{ SITENAME }}{% endblock %} | ||
{% block content %} | ||
<div> | ||
<article role="article"> | ||
<header> | ||
<h1 class="entry-title">Category: {{ category }}</h1> | ||
</header> | ||
|
||
<div id="blog-archives"> | ||
{% for year, date_year in dates|groupby('date.year')|sort(reverse=NEWEST_FIRST_ARCHIVES) %} | ||
<h2>{{ year }}</h2> | ||
{% for month, articles in date_year|groupby('date.month')|sort(reverse=NEWEST_FIRST_ARCHIVES) %} | ||
{% for article in articles %} | ||
<article> | ||
<h1><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></h1> | ||
<time datetime="{{ article.date }}" pubdate> | ||
<span class="month">{{ article.date.strftime('%B')[:3] }}</span> | ||
<span class="day">{{ article.date.strftime('%d') }}</span> | ||
<span class="year">{{ article.date.strftime('%Y') }}</span> | ||
</time> | ||
<footer> | ||
<span class="categories">posted in | ||
<a class='category' href='{{ SITEURL }}/{{ article.category.url }}'>{{ article.category }}</a> | ||
</span> | ||
{% include '_includes/article_stats.html' %} | ||
</footer> | ||
</article> | ||
{% endfor %} | ||
{% endfor %} | ||
{% endfor %} | ||
</div> | ||
</article> | ||
</div> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{% extends "base.html" %} | ||
{% block title %}Archive – {{ period[2] }} {{ period[1] }} {{ period[0] }} — {{ SITENAME }}{% endblock %} | ||
{% block content %} | ||
<div> | ||
<article role="article"> | ||
<header> | ||
<h1 class="entry-title">Blog Archive – {{ period[2] }} {{ period[1] }} {{ period[0] }}</h1> | ||
</header> | ||
|
||
<div id="blog-archives"> | ||
{% for year, date_year in dates|groupby('date.year')|sort(reverse=NEWEST_FIRST_ARCHIVES) %} | ||
<h2>{{ year }}</h2> | ||
{% for month, articles in date_year|groupby('date.month')|sort(reverse=NEWEST_FIRST_ARCHIVES) %} | ||
{% for article in articles %} | ||
<article> | ||
<h1><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></h1> | ||
<time datetime="{{ article.date }}" pubdate> | ||
<span class="month">{{ article.date.strftime('%B')[:3] }}</span> | ||
<span class="day">{{ article.date.strftime('%d') }}</span> | ||
<span class="year">{{ article.date.strftime('%Y') }}</span> | ||
</time> | ||
<footer> | ||
<span class="categories">posted in | ||
<a class='category' href='{{ SITEURL }}/{{ article.category.url }}'>{{ article.category }}</a> | ||
{{ tag }} | ||
</span> | ||
{% include '_includes/article_stats.html' %} | ||
</footer> | ||
</article> | ||
{% endfor %} | ||
{% endfor %} | ||
{% endfor %} | ||
</div> | ||
</article> | ||
</div> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,35 @@ | ||
{% extends 'index.html' %} | ||
{% block title %}{{ SITENAME }} - {{ tag }}{% endblock %} | ||
{% extends "base.html" %} | ||
{% block title %}Tag: {{ tag }} — {{ SITENAME }}{% endblock %} | ||
{% block content %} | ||
<div> | ||
<article role="article"> | ||
<header> | ||
<h1 class="entry-title">Tag: {{ tag }}</h1> | ||
</header> | ||
|
||
<div id="blog-archives"> | ||
{% for year, date_year in dates|groupby('date.year')|sort(reverse=NEWEST_FIRST_ARCHIVES) %} | ||
<h2>{{ year }}</h2> | ||
{% for month, articles in date_year|groupby('date.month')|sort(reverse=NEWEST_FIRST_ARCHIVES) %} | ||
{% for article in articles %} | ||
<article> | ||
<h1><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></h1> | ||
<time datetime="{{ article.date }}" pubdate> | ||
<span class="month">{{ article.date.strftime('%B')[:3] }}</span> | ||
<span class="day">{{ article.date.strftime('%d') }}</span> | ||
<span class="year">{{ article.date.strftime('%Y') }}</span> | ||
</time> | ||
<footer> | ||
<span class="categories">posted in | ||
<a class='category' href='{{ SITEURL }}/{{ article.category.url }}'>{{ article.category }}</a> | ||
</span> | ||
{% include '_includes/article_stats.html' %} | ||
</footer> | ||
</article> | ||
{% endfor %} | ||
{% endfor %} | ||
{% endfor %} | ||
</div> | ||
</article> | ||
</div> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{% extends "base.html" %} | ||
{% block title %}Tags — {{ SITENAME }}{% endblock %} | ||
{% block content %} | ||
<div> | ||
<article role="article"> | ||
<header> | ||
<h1 class="entry-title">Blog Tags</h1> | ||
</header> | ||
|
||
<p> | ||
{% for tag, articles in tags|sort %} | ||
<a href="{{ SITEURL }}/{{ tag.url }}">{{ tag.name }}</a> ({{ articles|count }})<br> | ||
{% endfor %} | ||
</p> | ||
</article> | ||
</div> | ||
{% endblock %} |