From 1d39002bb59f2e3fc647f22e60bac45ec71b3982 Mon Sep 17 00:00:00 2001 From: lynxize Date: Thu, 7 Nov 2024 21:51:28 -0700 Subject: [PATCH] basic Zola beginnings --- content/blog/_index.md | 6 ++++++ content/blog/test.md | 6 ++++++ content/blog/test2.md | 6 ++++++ templates/base.html | 18 ++++++++++++++++++ templates/blog.html | 14 ++++++++++++++ templates/index.html | 8 ++++++++ templates/post.html | 9 +++++++++ 7 files changed, 67 insertions(+) create mode 100644 content/blog/_index.md create mode 100644 content/blog/test.md create mode 100644 content/blog/test2.md create mode 100644 templates/base.html create mode 100644 templates/blog.html create mode 100644 templates/index.html create mode 100644 templates/post.html diff --git a/content/blog/_index.md b/content/blog/_index.md new file mode 100644 index 0000000..539afb4 --- /dev/null +++ b/content/blog/_index.md @@ -0,0 +1,6 @@ ++++ +title = "List of blog posts" +sort_by = "date" +template = "blog.html" +page_template = "post.html" ++++ \ No newline at end of file diff --git a/content/blog/test.md b/content/blog/test.md new file mode 100644 index 0000000..bc9c6ff --- /dev/null +++ b/content/blog/test.md @@ -0,0 +1,6 @@ ++++ +title = "My first post" +date = 2019-11-27 ++++ + +This is my first blog post. \ No newline at end of file diff --git a/content/blog/test2.md b/content/blog/test2.md new file mode 100644 index 0000000..ef92b45 --- /dev/null +++ b/content/blog/test2.md @@ -0,0 +1,6 @@ ++++ +title = "My second post" +date = 2019-11-28 ++++ + +This is my second blog post. \ No newline at end of file diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..ac4db44 --- /dev/null +++ b/templates/base.html @@ -0,0 +1,18 @@ + + + + + + + lynxize + + + +
+
+ {% block content %} {% endblock %} +
+
+ + + \ No newline at end of file diff --git a/templates/blog.html b/templates/blog.html new file mode 100644 index 0000000..eb0a9ff --- /dev/null +++ b/templates/blog.html @@ -0,0 +1,14 @@ +{% extends "base.html" %} + +{% block content %} +

+ {{ section.title }} +

+ +{% endblock content %} \ No newline at end of file diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..5dd5e2f --- /dev/null +++ b/templates/index.html @@ -0,0 +1,8 @@ +{% extends "base.html" %} + +{% block content %} +

+ This is my blog made with Zola. +

+

Posts.

+{% endblock content %} \ No newline at end of file diff --git a/templates/post.html b/templates/post.html new file mode 100644 index 0000000..4072083 --- /dev/null +++ b/templates/post.html @@ -0,0 +1,9 @@ +{% extends "base.html" %} + +{% block content %} +

+ {{ page.title }} +

+

{{ page.date }}

+{{ page.content | safe }} +{% endblock content %} \ No newline at end of file