Some stuff, idk

This commit is contained in:
Hazel Layne Aranda 2021-02-26 14:02:34 -05:00
parent 79100d3f86
commit 2e08cdb595
Signed by: hazelra
GPG key ID: 09213F100E5E4E67
7 changed files with 69 additions and 22 deletions

View file

@ -10,22 +10,22 @@
{% if page.extra.toc %}
<h1>Table of Contents <span id="toc-toggle">[-]</span></h1>
<div id="toc">
<ul>
<ol>
{% for h1 in page.toc %}
<li>
<a class="internal" href="{{ h1.permalink | safe }}">{{ h1.title }}</a>
{% if h1.children %}
<ul>
<ol>
{% for h2 in h1.children %}
<li>
<a class="internal" href="{{ h2.permalink | safe }}">{{ h2.title }}</a>
</li>
{% endfor %}
</ul>
</ol>
{% endif %}
</li>
{% endfor %}
</ul>
</ol>
</div>
<script>
var shown = false;

View file

@ -3,18 +3,23 @@
{% block title %}{{ section.title }} - Hazelnut{% endblock title %}
{% block content %}
{{ section.content | safe }}
<hr>
<h1> {{ section.title }} </h1>
<ul class="post-list">
{% for page in section.pages %}
{% for page in section.pages | sort(attribute="date") | reverse %}
<li>
<a class="internal" href="{{ page.permalink }}">
{{ page.title }}
{% if page.date %}
<p class="post-date">
{{ page.date | date(format="%Y-%m-%d") }}
</p>
{% endif %}
{% if page.description %}
<p class="post-desc">
{{ page.description }}
</p>
{% endif %}
</a>
</li>
{% endfor %}