Somethin, idk

This commit is contained in:
Hazel Layne Aranda 2020-12-23 11:55:55 -05:00
parent da8221bf81
commit 7cbf18ce74
9 changed files with 79 additions and 10 deletions

View file

@ -1,10 +1,14 @@
<header>
<h1 class="site-title">{{ config.title }}</h1>
<nav>
{% for item in config.extra.menu %}
<a href="{{ item.url | safe | replace(from="$BASE_URL", to=config.base_url) }}">
{{ item.name }}
</a>
{% endfor %}
<ul>
{% for item in config.extra.menu %}
<li>
<a class="{% if not item.external %}internal{% endif %}" href="{{ item.url | safe | replace(from="$BASE_URL", to=config.base_url) }}">
{{ item.name }}
</a>
</li>
{% endfor %}
</ul>
</nav>
</header>

22
templates/section.html Normal file
View file

@ -0,0 +1,22 @@
{% extends "base.html" %}
{% block title %}{{ section.title }} - Hazelnut{% endblock title %}
{% block content %}
{{ section.content | safe }}
<hr>
<ul class="post-list">
{% for page in section.pages %}
<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 %}
</a>
</li>
{% endfor %}
</ul>
{% endblock content %}