update to use configurable resource timestamp formats in webdog

This commit is contained in:
zyl 2024-11-13 14:54:50 -08:00
parent 57bf21a144
commit 0eabc0a797
Signed by: zyl
SSH key fingerprint: SHA256:uxxbSXbdroP/OnKBGnEDk5q7EKB2razvstC/KmzdXXs
5 changed files with 6 additions and 4 deletions

View file

@ -19,7 +19,7 @@
{% for resource in data.resources %}
<div class="post">
<p class="title"><a href="/blog/{{resource.id}}">{{resource.title}}</a></p>
<p class="timestamp">{{resource.timestamp}}</p>
<p class="timestamp">{{resource.readable_timestamp}}</p>
<p class="short-desc">{{resource.desc}}</p>
</div>
{% endfor %}

View file

@ -2,7 +2,7 @@
{% block content %}
<div class="blog-post">
<h1 class="title">{{ data.title }}</h1>
<span class="timestamp">published {{ data.timestamp }}</span>
<span class="timestamp">published {{ data.readable_timestamp }}</span>
{% if data.draft %}
<h2>DRAFT</h2>
{% endif %}