mirror of
https://github.com/zyllian/zyllian.github.io.git
synced 2025-01-18 11:47:01 -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
|
tag_list_title: blog tags
|
||||||
resource_name_plural: blog posts
|
resource_name_plural: blog posts
|
||||||
resources_per_page: 20
|
resources_per_page: 20
|
||||||
|
timestamp_format: "[weekday], [month repr:long] [day], [year]"
|
||||||
images:
|
images:
|
||||||
source_path: images
|
source_path: images
|
||||||
output_path_resources: i
|
output_path_resources: i
|
||||||
|
@ -33,3 +34,4 @@ resources:
|
||||||
tag_list_title: image tags
|
tag_list_title: image tags
|
||||||
resource_name_plural: images
|
resource_name_plural: images
|
||||||
resources_per_page: 10
|
resources_per_page: 10
|
||||||
|
timestamp_format: "[weekday], [month repr:long] [day], [year]"
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
{% for resource in data.resources %}
|
{% for resource in data.resources %}
|
||||||
<div class="post">
|
<div class="post">
|
||||||
<p class="title"><a href="/blog/{{resource.id}}">{{resource.title}}</a></p>
|
<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>
|
<p class="short-desc">{{resource.desc}}</p>
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="blog-post">
|
<div class="blog-post">
|
||||||
<h1 class="title">{{ data.title }}</h1>
|
<h1 class="title">{{ data.title }}</h1>
|
||||||
<span class="timestamp">published {{ data.timestamp }}</span>
|
<span class="timestamp">published {{ data.readable_timestamp }}</span>
|
||||||
{% if data.draft %}
|
{% if data.draft %}
|
||||||
<h2>DRAFT</h2>
|
<h2>DRAFT</h2>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
{% for resource in resources %}
|
{% for resource in resources %}
|
||||||
<div class="post">
|
<div class="post">
|
||||||
<p class="title"><a href="/blog/{{resource.id}}">{{resource.title}}</a></p>
|
<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>
|
<p class="short-desc">{{resource.desc}}</p>
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="image-full">
|
<div class="image-full">
|
||||||
<h1 class="title">{{ data.title }}</h1>
|
<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}}">
|
<img class="image-actual" src="{{data.cdn_file}}" alt="{{data.alt}}">
|
||||||
{{ data.content | safe }}
|
{{ data.content | safe }}
|
||||||
<p><a href="{{data.cdn_file}}">view full size image</a></p>
|
<p><a href="{{data.cdn_file}}">view full size image</a></p>
|
||||||
|
|
Loading…
Add table
Reference in a new issue