From dbfe642280c043e129752c488aa8c14159071281 Mon Sep 17 00:00:00 2001 From: Alexandre Jesus Date: Fri, 26 Aug 2022 13:10:42 +0100 Subject: Initial site, and first blog post --- templates/404.html | 5 +++ templates/base.html | 89 ++++++++++++++++++++++++++++++++++++++++++++++++++++ templates/blog.html | 13 ++++++++ templates/index.html | 8 +++++ templates/page.html | 11 +++++++ 5 files changed, 126 insertions(+) create mode 100644 templates/404.html create mode 100644 templates/base.html create mode 100644 templates/blog.html create mode 100644 templates/index.html create mode 100644 templates/page.html (limited to 'templates') diff --git a/templates/404.html b/templates/404.html new file mode 100644 index 0000000..b931eeb --- /dev/null +++ b/templates/404.html @@ -0,0 +1,5 @@ +{% extends "base.html" %} + +{% block content %} +

Page not found

+{% endblock content %} diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..b41a37c --- /dev/null +++ b/templates/base.html @@ -0,0 +1,89 @@ + + + + + + + + {% if page.title %} + {{ page.title }} |  + {% endif %} + {% if section.title %} + {{ section.title }} |  + {% endif %} + {{ config.title }} + + + + + + +
+

{{ config.title }}

+ +
+ +
+ {% block content %} + {% endblock content %} +
+ + + + diff --git a/templates/blog.html b/templates/blog.html new file mode 100644 index 0000000..147ac2b --- /dev/null +++ b/templates/blog.html @@ -0,0 +1,13 @@ +{% extends "base.html" %} + +{% block content %} +

{{ section.title }}

+
+

Feed

+ {% for page in section.pages %} +

+ {{ page.date }} {{ page.title }} +

+ {% endfor %} +
+{% endblock content %} diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..effabc5 --- /dev/null +++ b/templates/index.html @@ -0,0 +1,8 @@ +{% extends "base.html" %} + +{% block content %} +

{{ section.title }}

+
+ {{ section.content | safe }} +
+{% endblock content %} diff --git a/templates/page.html b/templates/page.html new file mode 100644 index 0000000..f3a86d8 --- /dev/null +++ b/templates/page.html @@ -0,0 +1,11 @@ +{% extends "base.html" %} + +{% block content %} +

{{ page.title }}

+
+ {% if page.date %} + {{ page.date }} + {% endif %} + {{ page.content | safe }} +
+{% endblock content %} -- cgit v1.2.3