diff options
author | 2025-02-17 01:33:05 -0500 | |
---|---|---|
committer | 2025-02-17 01:33:05 -0500 | |
commit | 4589b93a5861cb165abc29c903229cf48fcabda9 (patch) | |
tree | 5a4f3df27b4845b1057e79c643b03c801d08dc63 /templates | |
parent | 9741d3584867f4d9bf24bc4431c67d0583230678 (diff) |
added snippets section
Diffstat (limited to 'templates')
-rw-r--r-- | templates/snippet-page.html | 9 | ||||
-rw-r--r-- | templates/snippets.html | 14 |
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 %} |