mirror of
https://github.com/zyllian/zyllian.github.io.git
synced 2025-01-17 19:22:30 -08:00
update to use configurable resource timestamp formats in webdog
This commit is contained in:
parent
57bf21a144
commit
0eabc0a797
5 changed files with 6 additions and 4 deletions
|
@ -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]"
|
||||
|
|
|
@ -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 %}
|
||||
|
|
|
@ -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 %}
|
||||
|
|
|
@ -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 %}
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue