From 8fe7d8c1132616c65e2923890b2b539b073bc7f8 Mon Sep 17 00:00:00 2001 From: Colin Date: Tue, 29 Mar 2022 06:42:42 +0000 Subject: [PATCH] restructure so that blog listing is at root, alongside links to about/etc --- content/_index.md | 3 +++ content/about.md | 4 ++++ content/blog/_index.md | 5 ++--- content/blog/test.md | 1 + templates/about.html | 5 +++++ templates/blog.html | 13 ------------- templates/index.html | 15 +++++++++++++-- 7 files changed, 28 insertions(+), 18 deletions(-) create mode 100644 content/_index.md create mode 100644 content/about.md create mode 100644 templates/about.html delete mode 100644 templates/blog.html diff --git a/content/_index.md b/content/_index.md new file mode 100644 index 0000000..9ceefed --- /dev/null +++ b/content/_index.md @@ -0,0 +1,3 @@ ++++ +title = "Perfectly Sane" ++++ diff --git a/content/about.md b/content/about.md new file mode 100644 index 0000000..ba8e36d --- /dev/null +++ b/content/about.md @@ -0,0 +1,4 @@ ++++ +template = "about.html" +title = "About" ++++ diff --git a/content/blog/_index.md b/content/blog/_index.md index 85ccf3c..8e893c4 100644 --- a/content/blog/_index.md +++ b/content/blog/_index.md @@ -1,6 +1,5 @@ +++ -title = "Perfectly Sane Blog" -sort_by = "date" -template = "blog.html" page_template = "blog-page.html" +sort_by = "date" +redirect_to = "/" +++ diff --git a/content/blog/test.md b/content/blog/test.md index fd589f3..51a1161 100644 --- a/content/blog/test.md +++ b/content/blog/test.md @@ -1,6 +1,7 @@ +++ title = "Test Post" date = 2022-03-28 +path = "blog/test" +++ It's nearly April, already? diff --git a/templates/about.html b/templates/about.html new file mode 100644 index 0000000..a52b241 --- /dev/null +++ b/templates/about.html @@ -0,0 +1,5 @@ +{% extends "base.html" %} + +{% block content %} +cOmInG sOoN +{% endblock content %} diff --git a/templates/blog.html b/templates/blog.html deleted file mode 100644 index 0316a1b..0000000 --- a/templates/blog.html +++ /dev/null @@ -1,13 +0,0 @@ -{% extends "base.html" %} - -{% block content %} -

- {{ section.title }} -

- -{% endblock content %} - diff --git a/templates/index.html b/templates/index.html index 7136422..96dd40a 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,7 +1,18 @@ {% extends "base.html" %} {% block content %} +{% set blog = get_section(path="blog/_index.md") %} +{% set about = get_page(path="about.md") %} +

- WIP + {{ section.title }}

-{% endblock content %} + +about + + +{% endblock content %}