From 63b952fe5ca4b1273078d32aafa320a24795b75a Mon Sep 17 00:00:00 2001 From: Colin Date: Tue, 29 Mar 2022 05:26:14 +0000 Subject: [PATCH] add some demo content, from the Zola Getting Started pages --- .gitignore | 1 + content/blog/_index.md | 6 ++++++ content/blog/test.md | 6 ++++++ templates/base.html | 17 +++++++++++++++++ templates/blog-page.html | 9 +++++++++ templates/blog.html | 13 +++++++++++++ templates/index.html | 7 +++++++ 7 files changed, 59 insertions(+) create mode 100644 .gitignore create mode 100644 content/blog/_index.md create mode 100644 content/blog/test.md create mode 100644 templates/base.html create mode 100644 templates/blog-page.html create mode 100644 templates/blog.html create mode 100644 templates/index.html diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..364fdec --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +public/ diff --git a/content/blog/_index.md b/content/blog/_index.md new file mode 100644 index 0000000..85ccf3c --- /dev/null +++ b/content/blog/_index.md @@ -0,0 +1,6 @@ ++++ +title = "Perfectly Sane Blog" +sort_by = "date" +template = "blog.html" +page_template = "blog-page.html" ++++ diff --git a/content/blog/test.md b/content/blog/test.md new file mode 100644 index 0000000..fd589f3 --- /dev/null +++ b/content/blog/test.md @@ -0,0 +1,6 @@ ++++ +title = "Test Post" +date = 2022-03-28 ++++ + +It's nearly April, already? diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..6ba9a5c --- /dev/null +++ b/templates/base.html @@ -0,0 +1,17 @@ + + + + + + Perfectly Sane + + + +
+
+ {% block content %} {% endblock %} +
+
+ + + diff --git a/templates/blog-page.html b/templates/blog-page.html new file mode 100644 index 0000000..f0f638e --- /dev/null +++ b/templates/blog-page.html @@ -0,0 +1,9 @@ +{% extends "base.html" %} + +{% block content %} +

+ {{ page.title }} +

+

{{ page.date }}

+{{ page.content | safe }} +{% endblock content %} diff --git a/templates/blog.html b/templates/blog.html new file mode 100644 index 0000000..0316a1b --- /dev/null +++ b/templates/blog.html @@ -0,0 +1,13 @@ +{% extends "base.html" %} + +{% block content %} +

+ {{ section.title }} +

+ +{% endblock content %} + diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..7136422 --- /dev/null +++ b/templates/index.html @@ -0,0 +1,7 @@ +{% extends "base.html" %} + +{% block content %} +

+ WIP +

+{% endblock content %}