From 74992aaa27eb384128924c4a3b93052961a3eaab Mon Sep 17 00:00:00 2001 From: Christian Cleberg Date: Sat, 27 Apr 2024 17:01:13 -0500 Subject: test conversion back to markdown --- templates/base.html | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ templates/blog.html | 18 ++++++++++++++++++ templates/index.html | 42 ++++++++++++++++++++++++++++++++++++++++++ templates/page.html | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ templates/wiki.html | 16 ++++++++++++++++ 5 files changed, 175 insertions(+) create mode 100644 templates/base.html create mode 100644 templates/blog.html create mode 100644 templates/index.html create mode 100644 templates/page.html create mode 100644 templates/wiki.html (limited to 'templates') diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..e867cb9 --- /dev/null +++ b/templates/base.html @@ -0,0 +1,48 @@ + + + + {% block title %} + cleberg.net + {% endblock %} + + + + {% if page %} + {% if page.description %} + + {% elif config.description %} + + {% endif %} + {% elif config.description %} + + {% endif %} + + {% block rss %} + + {% endblock %} + + {% block css %} + + {% endblock css %} + + {% block extra_head %}{% endblock extra_head %} + + + + +
{% block content %}{% endblock content %}
+ + + + diff --git a/templates/blog.html b/templates/blog.html new file mode 100644 index 0000000..184587b --- /dev/null +++ b/templates/blog.html @@ -0,0 +1,18 @@ +{% extends "base.html" %} + +{% block content %} +

{{ section.title }}

+

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

+

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

+{% set post_date = "1970-01-01" | date(format="%Y") %} +{% for page in section.pages %} + {% if post_date != page.date | date(format="%Y") %} + {% set_global post_date = page.date | date(format="%Y") %} +

{{ post_date }}

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

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

+ {% set section = get_section(path="blog/_index.md") %} + {% set i = 0 %} + {% for page in section.pages %} + {% if i < 3%} + {% set_global i = i + 1%} +
+ + {{ page.title }} +
+ {% endif %} + {% endfor %} +
+ All Posts → +
+
+

Everything Else

+ +
+
+

Contact

+ +
+{% endblock content %} diff --git a/templates/page.html b/templates/page.html new file mode 100644 index 0000000..b858d1a --- /dev/null +++ b/templates/page.html @@ -0,0 +1,51 @@ +{% extends "base.html" %} + +{% block title %} +{{ page.title }} | cleberg.net +{% endblock %} + +{% block css %} + + + +{% endblock css %} + +{% block content %} +
+

{{ page.title }}

+ {% if page.date %} +

+ {% endif %} + {% if page.updated %} +

Last Updated:

+ {% endif %} +

{{ page.word_count }} words; {{ page.reading_time }} minute(s)

+{% if page.toc %} +
+ Table of Contents + +
+{% endif %} +
+ +
+{{ page.content | safe }} +
+{% endblock content %} diff --git a/templates/wiki.html b/templates/wiki.html new file mode 100644 index 0000000..a61d197 --- /dev/null +++ b/templates/wiki.html @@ -0,0 +1,16 @@ +{% extends "base.html" %} + +{% block content %} +

{{ section.title }}

+

Use Ctrl + F to search wiki pages for keywords.

+
+

Wiki Page

+

Last Updated

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

{{ page.title }}

+
+{% endfor %} +{% endblock content %} -- cgit v1.2.3-70-g09d2