diff options
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 %} |