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 %}