add archives page, link for gitlog

This commit is contained in:
Trent Palmer 2021-08-06 10:16:51 -07:00
parent 0a89655e79
commit 5c828f6589
3 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,16 @@
{% extends "base.html" %}
{% block title %}{{ SITENAME }} - Archives{% endblock %}
{% block content %}
<h1>Archives for {{ SITENAME }}</h1>
<dl class="pure-menu-list">
{% for article in dates %}
<dt>{{ article.locale_date }}</dt>
<dd class="pure-menu-item">
<a class="pure-menu-link" href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a>
</dd>
{% endfor %}
</dl>
{% endblock %}

View File

@ -96,6 +96,12 @@
{% endfor %} {% endfor %}
{% endif %} {% endif %}
<li class="pure-menu-item">
<a class="pure-menu-link" style="color: #6c757d;" href="{{ SITEURL }}/archives.html">Archives</a>
</li>
<li class="pure-menu-item">
<a class="pure-menu-link" style="color: #6c757d;" href="https://git.boringonian.com/trent/lmnwest/commits/branch/master">GitLog</a>
</li>
</ul> </ul>
</nav><!-- /#menu --> </nav><!-- /#menu -->
{% block content %} {% block content %}

View File

@ -0,0 +1,14 @@
{% extends "base.html" %}
{% block title %}{{ SITENAME }} - Tags{% endblock %}
{% block content %}
<h1>Tags for {{ SITENAME }}</h1>
<ul class="pure-menu-list">
{% for tag, articles in tags|sort %}
<li class="pure-menu-item">
<a class="pure-menu-link" href="{{ SITEURL }}/{{ tag.url }}">{{ tag }} ({{ articles|count }})</a>
</li>
{% endfor %}
</ul>
{% endblock %}