diff options
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/posts-page.html | 4 | ||||
| -rw-r--r-- | templates/posts-section.html | 9 |
2 files changed, 13 insertions, 0 deletions
diff --git a/templates/posts-page.html b/templates/posts-page.html new file mode 100644 index 0000000..a3b0b8a --- /dev/null +++ b/templates/posts-page.html @@ -0,0 +1,4 @@ +{% extends "base.html" %} {% block body %} +<h1>{{ page.title }}</h1> +<p>{{ page.date }}</p> +{{ page.content | safe }} {% endblock body %} diff --git a/templates/posts-section.html b/templates/posts-section.html new file mode 100644 index 0000000..77e8c3b --- /dev/null +++ b/templates/posts-section.html @@ -0,0 +1,9 @@ +{% extends "base.html" %} {% block body %} +<h1>{{ section.title }}</h1> +<p>{{ section.content | safe }}</p> +<ul> + {% for page in section.pages %} + <li><a href="{{ page.permalink | safe }}">{{ page.title }}</a> ({{ page.date }})</li> + {% endfor %} +</ul> +{% endblock body %} |
