Published on: {{ page.date }}
+ {{ page.content | safe }} +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 %} +Published on: {{ page.date }}
+ {{ page.content | safe }} +