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

@ -22,6 +22,7 @@ resources:
tag_list_title: blog tags
resource_name_plural: blog posts
resources_per_page: 20
timestamp_format: "[weekday], [month repr:long] [day], [year]"
images:
source_path: images
output_path_resources: i
@ -33,3 +34,4 @@ resources:
tag_list_title: image tags
resource_name_plural: images
resources_per_page: 10
timestamp_format: "[weekday], [month repr:long] [day], [year]"

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 %}

View file

@ -5,7 +5,7 @@
{% for resource in 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="image-full">
<h1 class="title">{{ data.title }}</h1>
<span class="timestamp">published {{ data.timestamp }}</span>
<span class="timestamp">published {{ data.readable_timestamp }}</span>
<img class="image-actual" src="{{data.cdn_file}}" alt="{{data.alt}}">
{{ data.content | safe }}
<p><a href="{{data.cdn_file}}">view full size image</a></p>