diff --git a/site/config.yaml b/site/config.yaml index b4e045f..21ebdf7 100644 --- a/site/config.yaml +++ b/site/config.yaml @@ -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]" diff --git a/site/templates/blog/list.tera b/site/templates/blog/list.tera index 3040788..36d21f6 100644 --- a/site/templates/blog/list.tera +++ b/site/templates/blog/list.tera @@ -19,7 +19,7 @@ {% for resource in data.resources %}

{{resource.title}}

-

{{resource.timestamp}}

+

{{resource.readable_timestamp}}

{{resource.desc}}

{% endfor %} diff --git a/site/templates/blog/resource.tera b/site/templates/blog/resource.tera index 985407c..e2db22f 100644 --- a/site/templates/blog/resource.tera +++ b/site/templates/blog/resource.tera @@ -2,7 +2,7 @@ {% block content %}

{{ data.title }}

- published {{ data.timestamp }} + published {{ data.readable_timestamp }} {% if data.draft %}

DRAFT

{% endif %} diff --git a/site/templates/extras/index-injection.tera b/site/templates/extras/index-injection.tera index ef3d60d..bca9b75 100644 --- a/site/templates/extras/index-injection.tera +++ b/site/templates/extras/index-injection.tera @@ -5,7 +5,7 @@ {% for resource in resources %}

{{resource.title}}

-

{{resource.timestamp}}

+

{{resource.readable_timestamp}}

{{resource.desc}}

{% endfor %} diff --git a/site/templates/image/resource.tera b/site/templates/image/resource.tera index a86b74f..946412b 100644 --- a/site/templates/image/resource.tera +++ b/site/templates/image/resource.tera @@ -2,7 +2,7 @@ {% block content %}

{{ data.title }}

- published {{ data.timestamp }} + published {{ data.readable_timestamp }} {{data.alt}} {{ data.content | safe }}

view full size image