diff options
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/blog-page.html | 8 | ||||
| -rw-r--r-- | templates/index.html | 10 |
2 files changed, 13 insertions, 5 deletions
diff --git a/templates/blog-page.html b/templates/blog-page.html index f6e7ac7..0414d85 100644 --- a/templates/blog-page.html +++ b/templates/blog-page.html @@ -2,12 +2,16 @@ {% block content %} -<div style="display:flex; align-items:baseline; gap:1rem;"> +<header> <h1 class="title"> {{ page.title }} </h1> + <div> + <p>written: {{ page.date }}</p> + <p>updated: {{ page.updated }}</p> + </div> <a href="/">home</a> -</div> +</header> {{ page.content | safe }} {% endblock content %} diff --git a/templates/index.html b/templates/index.html index 8fb3c95..d894455 100644 --- a/templates/index.html +++ b/templates/index.html @@ -7,13 +7,17 @@ <p>{{ section.description }}</p> -<p> +<nav> Posts: <ul> {% for page in section.pages %} - <li><a href="{{ page.permalink | safe }}">{{ page.title }}</a></li> + <li> + <a href="{{ page.permalink | safe }}">{{ page.title }}</a> + <p>written: {{ page.date }}, </p> + <p>updated: {{ page.updated }}</p> + </li> {% endfor %} </ul> -</p> +</nav> {% endblock %} |
