diff options
| author | Dmitry Ilvokhin <d@ilvokhin.com> | 2025-04-19 21:43:53 +0100 | 
|---|---|---|
| committer | Dmitry Ilvokhin <d@ilvokhin.com> | 2025-04-19 21:43:53 +0100 | 
| commit | 96d437baab4a622eb540719feb90ea810fb01756 (patch) | |
| tree | 8757d41e9e2c673965483b2466ae306c9a7b8368 /templates/post.html | |
| parent | ea523d411689338876abd7b87d85164009e7ec73 (diff) | |
| download | blog-96d437baab4a622eb540719feb90ea810fb01756.tar.gz blog-96d437baab4a622eb540719feb90ea810fb01756.tar.bz2 blog-96d437baab4a622eb540719feb90ea810fb01756.zip | |
Add support for atom / rss feed
Date format was changed to support `updated` in ISO format. Now every
post will require date and time, which might be a usability regression,
but we'll see. Also, `updated` field was introduced in metadata. If
there is no such field, them date field will be used instead.
Diffstat (limited to 'templates/post.html')
| -rw-r--r-- | templates/post.html | 11 | 
1 files changed, 8 insertions, 3 deletions
| diff --git a/templates/post.html b/templates/post.html index 20c3ac2..f61a2bd 100644 --- a/templates/post.html +++ b/templates/post.html @@ -22,9 +22,14 @@  <main>  <h1>{{ title }}</h1>  <p> -    <i><time datetime="{{ date }}" pubdate> -    {{ date }} -    </time></i> +    <i> +    <time datetime="{{ date.strftime('%Y-%m-%d') }}" pubdate> +        {{ date.strftime('%Y-%m-%d') }} +    </time> +    {% if date != updated %} +    (updated <time datetime="{{ updated.strftime('%Y-%m-%d') }}">{{ updated.strftime('%Y-%m-%d') }}</time>) +    {% endif %} +    </i>  {% if status == "draft" %}  • {{ status }}  {% endif %} |