Add h1 to the categories list in simple/notmyidea

The authors.html and tags.html templates both have this. Add it here as
well for consistency.

This also affects the notmyidea theme because it inherits the categories
template from simple.

While we're here, also make indentation consistent with other files (4
spaces within a block).
This commit is contained in:
Allen Zheng 2018-07-05 10:06:34 -04:00
commit 10f70db9a6
4 changed files with 27 additions and 23 deletions

View file

@ -20,12 +20,13 @@
<li><a href="/category/yeah.html">yeah</a></li> <li><a href="/category/yeah.html">yeah</a></li>
</ul></nav> </ul></nav>
</header><!-- /#banner --> </header><!-- /#banner -->
<ul> <h1>Categories on A Pelican Blog</h1>
<li><a href="/category/bar.html">bar</a> (1)</li> <ul>
<li><a href="/category/cat1.html">cat1</a> (4)</li> <li><a href="/category/bar.html">bar</a> (1)</li>
<li><a href="/category/misc.html">misc</a> (4)</li> <li><a href="/category/cat1.html">cat1</a> (4)</li>
<li><a href="/category/yeah.html">yeah</a> (1)</li> <li><a href="/category/misc.html">misc</a> (4)</li>
</ul> <li><a href="/category/yeah.html">yeah</a> (1)</li>
</ul>
<section id="extras" class="body"> <section id="extras" class="body">
<div class="social"> <div class="social">
<h2>social</h2> <h2>social</h2>

View file

@ -24,12 +24,13 @@
<li><a href="./category/bar.html">bar</a></li> <li><a href="./category/bar.html">bar</a></li>
</ul></nav> </ul></nav>
</header><!-- /#banner --> </header><!-- /#banner -->
<ul> <h1>Categories on Alexis' log</h1>
<li><a href="./category/bar.html">bar</a> (1)</li> <ul>
<li><a href="./category/cat1.html">cat1</a> (4)</li> <li><a href="./category/bar.html">bar</a> (1)</li>
<li><a href="./category/misc.html">misc</a> (4)</li> <li><a href="./category/cat1.html">cat1</a> (4)</li>
<li><a href="./category/yeah.html">yeah</a> (1)</li> <li><a href="./category/misc.html">misc</a> (4)</li>
</ul> <li><a href="./category/yeah.html">yeah</a> (1)</li>
</ul>
<section id="extras" class="body"> <section id="extras" class="body">
<div class="blogroll"> <div class="blogroll">
<h2>links</h2> <h2>links</h2>

View file

@ -24,12 +24,13 @@
<li><a href="./category/bar.html">bar</a></li> <li><a href="./category/bar.html">bar</a></li>
</ul></nav> </ul></nav>
</header><!-- /#banner --> </header><!-- /#banner -->
<ul> <h1>Categories on Alexis' log</h1>
<li><a href="./category/bar.html">bar</a> (1)</li> <ul>
<li><a href="./category/cat1.html">cat1</a> (4)</li> <li><a href="./category/bar.html">bar</a> (1)</li>
<li><a href="./category/misc.html">misc</a> (4)</li> <li><a href="./category/cat1.html">cat1</a> (4)</li>
<li><a href="./category/yeah.html">yeah</a> (1)</li> <li><a href="./category/misc.html">misc</a> (4)</li>
</ul> <li><a href="./category/yeah.html">yeah</a> (1)</li>
</ul>
<section id="extras" class="body"> <section id="extras" class="body">
<div class="blogroll"> <div class="blogroll">
<h2>links</h2> <h2>links</h2>

View file

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