From ba4e78346aac1843890c1a889807b8e60bdf9419 Mon Sep 17 00:00:00 2001 From: Philipp Geyer Date: Sat, 22 Jan 2022 14:12:35 +0000 Subject: Some work on my website - should be looking half decent finally, and have some content --- theme/templates/articles.html | 18 ++++++++++++++ theme/templates/base.html | 55 +++++++++++++++++++++++++++++++++++++++++++ theme/templates/blog.html | 18 ++++++++++++++ theme/templates/feed.xml | 44 ++++++++++++++++++++++++++++++++++ theme/templates/page.html | 12 ++++++++++ theme/templates/post.html | 33 ++++++++++++++++++++++++++ 6 files changed, 180 insertions(+) create mode 100644 theme/templates/articles.html create mode 100644 theme/templates/base.html create mode 100644 theme/templates/blog.html create mode 100644 theme/templates/feed.xml create mode 100644 theme/templates/page.html create mode 100644 theme/templates/post.html (limited to 'theme') diff --git a/theme/templates/articles.html b/theme/templates/articles.html new file mode 100644 index 0000000..07085a1 --- /dev/null +++ b/theme/templates/articles.html @@ -0,0 +1,18 @@ +{% extends "base.html" %} + +{% block main %} +

Articles

+ + +{% endblock %} diff --git a/theme/templates/base.html b/theme/templates/base.html new file mode 100644 index 0000000..ff31f26 --- /dev/null +++ b/theme/templates/base.html @@ -0,0 +1,55 @@ + + + + {% block head %} + + + {% block title %}{{ site_name | default("Philipp Geyer") }}{% endblock %} + {% block subtitle %}{% endblock %} + + + {% if site_owner is defined %}{% endif %} + {% if site_description is defined %}{% endif %} + {% if site_keywords is defined %}{% endif %} + {% block meta %}{% endblock %} + + + {% endblock %} + + + {# Top navigation bar #} + {% block nav %} +
+

+ + {% block title %}{{ site_name | default("Philipp Geyer") }}{% endblock %} + +

+ jump to main content + +
+ {% endblock %} + + {# Probably where most of the action will happen #} +
+ {% block main %}{% endblock %} +
+ + {# Links, copyright notice, etc #} + {% block footer %} + + {% endblock %} + + + diff --git a/theme/templates/blog.html b/theme/templates/blog.html new file mode 100644 index 0000000..e3e8c3e --- /dev/null +++ b/theme/templates/blog.html @@ -0,0 +1,18 @@ +{% extends "base.html" %} + +{% block main %} +

Blog Posts

+ + +{% endblock %} diff --git a/theme/templates/feed.xml b/theme/templates/feed.xml new file mode 100644 index 0000000..5cf001c --- /dev/null +++ b/theme/templates/feed.xml @@ -0,0 +1,44 @@ + + + + Simple Blog + + {{ url_for("index") }} + + en + {{ posts | first | getattr("date") | strftime("%a, %d %b %Y %H:%M:%S %z") }} + {{ now() | strftime("%a, %d %b %Y %H:%M:%S %z") }} + {{ meta.generator }} + web@master (Blog Author) + + {{ url_for("index") }}media/img/8bitme.png + Blog Author + {{ url_for("index") }} + + + {% for post in posts %} + + {{ post.title }} + {{ url_for("posts", slug=post.slug) }} + {{ post.author|default("author@mail.com (Blog Author)") }} + {{ url_for("posts", slug=post.slug) }} + {% if post.date is defined %} + {{ post.date|strftime("%a, %d %b %Y %H:%M:%S %z") }} + {% endif %} + + + {% endfor %} + + + diff --git a/theme/templates/page.html b/theme/templates/page.html new file mode 100644 index 0000000..daa7a36 --- /dev/null +++ b/theme/templates/page.html @@ -0,0 +1,12 @@ +{% extends "base.html" %} + +{% block main %} +
+

+ {{ post.title }} +

+
+ {{ post.html|safe }} +
+
+{% endblock %} diff --git a/theme/templates/post.html b/theme/templates/post.html new file mode 100644 index 0000000..7bded9a --- /dev/null +++ b/theme/templates/post.html @@ -0,0 +1,33 @@ +{% extends "base.html" %} + +{% block meta %} + + + {% if post.description is defined %} + + {% elif project_description is defined %} + + {% endif %} + {% if post.image is defined %} + + {% elif project_image is defined %} + + {% endif %} + +{% endblock %} + +{% block main %} +
+

+ {{ post.title }} +

+ +
+ {{ post.html|safe }} +
+
+{% endblock %} -- cgit v1.2.3-70-g09d2