From 816a12e599ba4684074bd8d7c3106a76d62cf53f Mon Sep 17 00:00:00 2001 From: Jonas Tobias Hopusch Date: Sun, 13 Jun 2021 22:17:05 +0200 Subject: [PATCH] First attempt at adding some testing content to the site --- content/blog/_index.md | 6 ++++++ content/blog/first.md | 7 +++++++ templates/base.html | 25 +++++++++++++++++++++++++ templates/blog-page.html | 7 +++++++ templates/blog.html | 10 ++++++++++ templates/index.html | 3 +++ 6 files changed, 58 insertions(+) create mode 100644 content/blog/_index.md create mode 100644 content/blog/first.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/content/blog/_index.md b/content/blog/_index.md new file mode 100644 index 0000000..72bc989 --- /dev/null +++ b/content/blog/_index.md @@ -0,0 +1,6 @@ ++++ +title = "List of blog posts" +sort_by = "date" +template = "blog.html" +page_template = "blog-page.html" ++++ diff --git a/content/blog/first.md b/content/blog/first.md new file mode 100644 index 0000000..aa63d18 --- /dev/null +++ b/content/blog/first.md @@ -0,0 +1,7 @@ ++++ +title = "My first post" +date = 2021-06-13 +author = "Jonas Tobias Hopusch" ++++ + +Hello World! diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..09831e0 --- /dev/null +++ b/templates/base.html @@ -0,0 +1,25 @@ + + + + + + + + {% block content %} {% endblock %} + + + + diff --git a/templates/blog-page.html b/templates/blog-page.html new file mode 100644 index 0000000..2a86a09 --- /dev/null +++ b/templates/blog-page.html @@ -0,0 +1,7 @@ +{% extends "base.html" %} {% block content %} +

{{ page.title }}

+
+

Published on: {{ page.date }}

+ {{ page.content | safe }} +
+{% endblock content %} diff --git a/templates/blog.html b/templates/blog.html new file mode 100644 index 0000000..26f7412 --- /dev/null +++ b/templates/blog.html @@ -0,0 +1,10 @@ +{% 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..083a5ed --- /dev/null +++ b/templates/index.html @@ -0,0 +1,3 @@ +{% extends "base.html" %} {% block content %} +

This is my blog made with Zola.

+{% endblock content %}