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