From 0631d3a6721cef45a21b12a7c75fdbb20f24e3f4 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Thu, 26 Jul 2018 09:37:18 +0100 Subject: [PATCH] Add basic detail page --- templates/common/content.html | 2 +- templates/common/content_details.html | 3 +++ templates/pages/section_index_page.html | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 templates/common/content_details.html diff --git a/templates/common/content.html b/templates/common/content.html index 874a6b1..4a6680b 100644 --- a/templates/common/content.html +++ b/templates/common/content.html @@ -3,7 +3,7 @@

{{ page.title }}

Subtitle
-

Details

+

{% include "common/content_details.html" with page=page %}


{% include_block page.body %} diff --git a/templates/common/content_details.html b/templates/common/content_details.html new file mode 100644 index 0000000..d7c7d43 --- /dev/null +++ b/templates/common/content_details.html @@ -0,0 +1,3 @@ +{% if page.post_date %} +{{ page.post_date }} +{% endif %} diff --git a/templates/pages/section_index_page.html b/templates/pages/section_index_page.html index 71593bc..d349f47 100644 --- a/templates/pages/section_index_page.html +++ b/templates/pages/section_index_page.html @@ -20,7 +20,7 @@
{{ child.title }}
- details + {% include "common/content_details.html" with page=child %}

{{ child.get_short_body }}