From 4589b93a5861cb165abc29c903229cf48fcabda9 Mon Sep 17 00:00:00 2001 From: Silas Bartha Date: Mon, 17 Feb 2025 01:33:05 -0500 Subject: added snippets section --- templates/snippet-page.html | 9 +++++++++ templates/snippets.html | 14 ++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 templates/snippet-page.html create mode 100644 templates/snippets.html (limited to 'templates') diff --git a/templates/snippet-page.html b/templates/snippet-page.html new file mode 100644 index 0000000..f8b5687 --- /dev/null +++ b/templates/snippet-page.html @@ -0,0 +1,9 @@ +{% extends "base.html" %} + +{% block content %} + <- back to snippets +

+ {{ page.title }} +

+{{ page.content | safe }} +{% endblock content %} diff --git a/templates/snippets.html b/templates/snippets.html new file mode 100644 index 0000000..2f7137f --- /dev/null +++ b/templates/snippets.html @@ -0,0 +1,14 @@ +{% extends "base.html" %} + +{% block content %} + <- back to landing +

+ {{ section.title }} +

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

{{ page.title }} ({{page.date}})

+{{ page.content | safe }} +{% endfor %} +{% endblock content %} -- cgit v1.2.3