mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Add categories.html template to default theme
This commit is contained in:
parent
0384c9bc07
commit
2f5fc10614
4 changed files with 31 additions and 3 deletions
|
|
@ -22,13 +22,17 @@
|
|||
<li><a href="/category/yeah.html">yeah</a></li>
|
||||
</ul></nav>
|
||||
</header><!-- /#banner -->
|
||||
<h1>Categories on A Pelican Blog</h1>
|
||||
|
||||
<section id="content" class="body">
|
||||
<h1>Categories for A Pelican Blog</h1>
|
||||
<ul>
|
||||
<li><a href="/category/bar.html">bar</a> (1)</li>
|
||||
<li><a href="/category/cat1.html">cat1</a> (4)</li>
|
||||
<li><a href="/category/misc.html">misc</a> (4)</li>
|
||||
<li><a href="/category/yeah.html">yeah</a> (1)</li>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<section id="extras" class="body">
|
||||
<div class="social">
|
||||
<h2>social</h2>
|
||||
|
|
|
|||
|
|
@ -26,13 +26,17 @@
|
|||
<li><a href="./category/bar.html">bar</a></li>
|
||||
</ul></nav>
|
||||
</header><!-- /#banner -->
|
||||
<h1>Categories on Alexis' log</h1>
|
||||
|
||||
<section id="content" class="body">
|
||||
<h1>Categories for Alexis' log</h1>
|
||||
<ul>
|
||||
<li><a href="./category/bar.html">bar</a> (1)</li>
|
||||
<li><a href="./category/cat1.html">cat1</a> (4)</li>
|
||||
<li><a href="./category/misc.html">misc</a> (4)</li>
|
||||
<li><a href="./category/yeah.html">yeah</a> (1)</li>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<section id="extras" class="body">
|
||||
<div class="blogroll">
|
||||
<h2>links</h2>
|
||||
|
|
|
|||
|
|
@ -26,13 +26,17 @@
|
|||
<li><a href="./category/bar.html">bar</a></li>
|
||||
</ul></nav>
|
||||
</header><!-- /#banner -->
|
||||
<h1>Categories on Alexis' log</h1>
|
||||
|
||||
<section id="content" class="body">
|
||||
<h1>Categories for Alexis' log</h1>
|
||||
<ul>
|
||||
<li><a href="./category/bar.html">bar</a> (1)</li>
|
||||
<li><a href="./category/cat1.html">cat1</a> (4)</li>
|
||||
<li><a href="./category/misc.html">misc</a> (4)</li>
|
||||
<li><a href="./category/yeah.html">yeah</a> (1)</li>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<section id="extras" class="body">
|
||||
<div class="blogroll">
|
||||
<h2>links</h2>
|
||||
|
|
|
|||
16
pelican/themes/notmyidea/templates/categories.html
Normal file
16
pelican/themes/notmyidea/templates/categories.html
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}{{ SITENAME }} - Categories{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<section id="content" class="body">
|
||||
<h1>Categories for {{ SITENAME }}</h1>
|
||||
<ul>
|
||||
{% for category, articles in categories|sort %}
|
||||
<li><a href="{{ SITEURL }}/{{ category.url }}">{{ category }}</a> ({{ articles|count }})</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
{% endblock %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue