Add basic detail page
This commit is contained in:
parent
842ccae297
commit
0631d3a672
3 changed files with 5 additions and 2 deletions
|
@ -3,7 +3,7 @@
|
|||
<div class="mb-3 image header-image" data-image=''></div>
|
||||
<h1 class="display-5">{{ page.title }}</h1>
|
||||
<h5 class="my-3">Subtitle</h5>
|
||||
<p>Details</p>
|
||||
<p>{% include "common/content_details.html" with page=page %}</p>
|
||||
<hr />
|
||||
<div class="content mt-3">
|
||||
{% include_block page.body %}
|
||||
|
|
3
templates/common/content_details.html
Normal file
3
templates/common/content_details.html
Normal file
|
@ -0,0 +1,3 @@
|
|||
{% if page.post_date %}
|
||||
<span class="pr-1" title='{{ page.post_date }}'>{{ page.post_date }}</span>
|
||||
{% endif %}
|
|
@ -20,7 +20,7 @@
|
|||
<a href="{{ child.url }}">
|
||||
<h5 class="my-0">{{ child.title }}</h5>
|
||||
</a>
|
||||
<small>details</small>
|
||||
<small>{% include "common/content_details.html" with page=child %}</small>
|
||||
<p>{{ child.get_short_body }}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Reference in a new issue