From 2be43cc479dfd4cfb621f14381330c708291e324 Mon Sep 17 00:00:00 2001 From: Christian Cleberg Date: Sun, 28 Jul 2024 19:46:20 -0500 Subject: conversion from Zola to Weblorg --- theme/templates/base.html | 39 ++++++++++++++++++++++++++++++ theme/templates/blog.html | 15 ++++++++++++ theme/templates/feed.xml | 37 ++++++++++++++++++++++++++++ theme/templates/index.html | 60 ++++++++++++++++++++++++++++++++++++++++++++++ theme/templates/page.html | 11 +++++++++ theme/templates/post.html | 21 ++++++++++++++++ theme/templates/wiki.html | 12 ++++++++++ 7 files changed, 195 insertions(+) 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/index.html create mode 100644 theme/templates/page.html create mode 100644 theme/templates/post.html create mode 100644 theme/templates/wiki.html (limited to 'theme/templates') diff --git a/theme/templates/base.html b/theme/templates/base.html new file mode 100644 index 0000000..d6b37d2 --- /dev/null +++ b/theme/templates/base.html @@ -0,0 +1,39 @@ + + + + {% block head %} + + + {% block subtitle %}{% endblock %} + {% block title %}{{ site_name | default("weblorg website") }}{% endblock %} + + + {% if site_owner is defined %}{% endif %} + {% if site_description is defined %}{% endif %} + {% if site_keywords is defined %}{% endif %} + + + {% block meta %}{% endblock %} + {% endblock %} + + + +
{% block main %}{% endblock %}
+ + + diff --git a/theme/templates/blog.html b/theme/templates/blog.html new file mode 100644 index 0000000..daa36ee --- /dev/null +++ b/theme/templates/blog.html @@ -0,0 +1,15 @@ +{% extends "base.html" %} {% block subtitle %}Blog | {% endblock %} {% block +main %} +

Blog

+

Use Ctrl + F to search blog post titles for keywords.

+

+ You can also add the RSS Feed to your feed reader. +

+{% for post in posts %} +
+ + {{ post.title }} +
+{% endfor %} {% endblock %} diff --git a/theme/templates/feed.xml b/theme/templates/feed.xml new file mode 100644 index 0000000..7b23994 --- /dev/null +++ b/theme/templates/feed.xml @@ -0,0 +1,37 @@ + + + + {{ site_name | default("cleberg.net") }} + + {{ 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 }} + {{ site_owner | default("hello@cleberg.net") }} + + {% for post in posts %} + + {{ post.title }} + {{ url_for("blog", slug=post.slug) }} + {{ post.author|default("hello@cleberg.net") }} + {{ url_for("blog", slug=post.slug) }} + {{ post.date|strftime("%a, %d %b %Y %H:%M:%S %z") }} + + + {% endfor %} + + + diff --git a/theme/templates/index.html b/theme/templates/index.html new file mode 100644 index 0000000..c77e57d --- /dev/null +++ b/theme/templates/index.html @@ -0,0 +1,60 @@ +{% extends "base.html" %} {% block main %} +
+

cleberg.net

+
pub   rsa4096 2022-11-16 [SC]
+      3917 973F B159 BBB8 6194 5385 6945 1A51 7AC0 CB37
+uid           [ultimate] Christian Cleberg <hello@cleberg.net>
+
+
+

Recent Blog Posts

+ +
+ + Emacs on iPadOS +
+ +
+ + Fixing Ubuntu Error: 'Key is stored in legacy trusted.gpg keyring' +
+ +
+ + Running Ubuntu Linux on macOS with OrbStack +
+ +
+ All Posts → +
+ +
+

Everything Else

+ +
+ +
+

Contact

+ +
+ +{% endblock %} diff --git a/theme/templates/page.html b/theme/templates/page.html new file mode 100644 index 0000000..7a53b78 --- /dev/null +++ b/theme/templates/page.html @@ -0,0 +1,11 @@ +{% extends "base.html" %} + +{% block subtitle %} + {{ post.title }} +{% endblock %} +{% 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..58bdb72 --- /dev/null +++ b/theme/templates/post.html @@ -0,0 +1,21 @@ +{% extends "base.html" %} {% block subtitle %} {{ post.title }} | {% endblock %} +{% block meta %} + + +{% if post.description is defined %} + +{% elif project_description is defined %} + +{% endif %} {% endblock %} {% block main %} +
+ +
{{ post.html | safe }}
+
+{% endblock %} diff --git a/theme/templates/wiki.html b/theme/templates/wiki.html new file mode 100644 index 0000000..6087b36 --- /dev/null +++ b/theme/templates/wiki.html @@ -0,0 +1,12 @@ +{% extends "base.html" %} {% block subtitle %}Wiki | {% endblock %} {% block +main %} +

Wiki

+

Use Ctrl + F to search wiki pages for keywords.

+{% for post in posts %} +
+ + {{ post.title }} +
+{% endfor %} {% endblock %} -- cgit v1.2.3-70-g09d2