summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorLibravatar Silas Bartha <silas@soaos.dev>2025-02-17 01:33:05 -0500
committerLibravatar Silas Bartha <silas@soaos.dev>2025-02-17 01:33:05 -0500
commit4589b93a5861cb165abc29c903229cf48fcabda9 (patch)
tree5a4f3df27b4845b1057e79c643b03c801d08dc63 /templates
parent9741d3584867f4d9bf24bc4431c67d0583230678 (diff)
added snippets section
Diffstat (limited to 'templates')
-rw-r--r--templates/snippet-page.html9
-rw-r--r--templates/snippets.html14
2 files changed, 23 insertions, 0 deletions
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 %}
+<a href="{{ get_url(path='@/snippets/_index.md') }}"> <- back to snippets</a>
+<h1 class="title">
+ {{ page.title }}
+</h1>
+{{ 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 %}
+<a href="{{ get_url(path='@/_index.md') }}"> <- back to landing</a>
+<h1 class="title">
+ {{ section.title }}
+</h1>
+
+{% for page in section.pages %}
+<hr/>
+<h2><a href="{{ page.permalink | safe }}">{{ page.title }}</a> ({{page.date}})</h2>
+{{ page.content | safe }}
+{% endfor %}
+{% endblock content %}