restructure so that blog listing is at root, alongside links to about/etc

This commit is contained in:
Colin 2022-03-29 06:42:42 +00:00
parent b7190fec78
commit 8fe7d8c113
7 changed files with 28 additions and 18 deletions

3
content/_index.md Normal file
View File

@ -0,0 +1,3 @@
+++
title = "Perfectly Sane"
+++

4
content/about.md Normal file
View File

@ -0,0 +1,4 @@
+++
template = "about.html"
title = "About"
+++

View File

@ -1,6 +1,5 @@
+++
title = "Perfectly Sane Blog"
sort_by = "date"
template = "blog.html"
page_template = "blog-page.html"
sort_by = "date"
redirect_to = "/"
+++

View File

@ -1,6 +1,7 @@
+++
title = "Test Post"
date = 2022-03-28
path = "blog/test"
+++
It's nearly April, already?

5
templates/about.html Normal file
View File

@ -0,0 +1,5 @@
{% extends "base.html" %}
{% block content %}
cOmInG sOoN
{% endblock content %}

View File

@ -1,13 +0,0 @@
{% extends "base.html" %}
{% block content %}
<h1 class="title">
{{ section.title }}
</h1>
<ul>
{% for page in section.pages %}
<li><a href="{{ page.permalink | safe }}">{{ page.title }}</a></li>
{% endfor %}
</ul>
{% endblock content %}

View File

@ -1,7 +1,18 @@
{% extends "base.html" %}
{% block content %}
{% set blog = get_section(path="blog/_index.md") %}
{% set about = get_page(path="about.md") %}
<h1 class="title">
WIP
{{ section.title }}
</h1>
{% endblock content %}
<a href="{{ about.permalink | safe }}">about</a>
<ul>
{% for page in blog.pages %}
<li><a href="{{ page.permalink | safe }}">{{ page.title }}</a></li>
{% endfor %}
</ul>
{% endblock content %}