restructure so that blog listing is at root, alongside links to about/etc
This commit is contained in:
parent
b7190fec78
commit
8fe7d8c113
|
@ -0,0 +1,3 @@
|
||||||
|
+++
|
||||||
|
title = "Perfectly Sane"
|
||||||
|
+++
|
|
@ -0,0 +1,4 @@
|
||||||
|
+++
|
||||||
|
template = "about.html"
|
||||||
|
title = "About"
|
||||||
|
+++
|
|
@ -1,6 +1,5 @@
|
||||||
+++
|
+++
|
||||||
title = "Perfectly Sane Blog"
|
|
||||||
sort_by = "date"
|
|
||||||
template = "blog.html"
|
|
||||||
page_template = "blog-page.html"
|
page_template = "blog-page.html"
|
||||||
|
sort_by = "date"
|
||||||
|
redirect_to = "/"
|
||||||
+++
|
+++
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
+++
|
+++
|
||||||
title = "Test Post"
|
title = "Test Post"
|
||||||
date = 2022-03-28
|
date = 2022-03-28
|
||||||
|
path = "blog/test"
|
||||||
+++
|
+++
|
||||||
|
|
||||||
It's nearly April, already?
|
It's nearly April, already?
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
{% extends "base.html" %}
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
cOmInG sOoN
|
||||||
|
{% endblock content %}
|
|
@ -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 %}
|
|
||||||
|
|
|
@ -1,7 +1,18 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
{% set blog = get_section(path="blog/_index.md") %}
|
||||||
|
{% set about = get_page(path="about.md") %}
|
||||||
|
|
||||||
<h1 class="title">
|
<h1 class="title">
|
||||||
WIP
|
{{ section.title }}
|
||||||
</h1>
|
</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 %}
|
||||||
|
|
Loading…
Reference in New Issue