Skip to content

Commit

Permalink
Valid RFC-3339 date-time for atom feed (#58)
Browse files Browse the repository at this point in the history
* Valid RFC-3339 date-time for atom feed

* Valid RFC-3339 date-time for atom feed
  • Loading branch information
wg-daniel authored Jan 8, 2025
1 parent afe513c commit 4bf7eb4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions commands/initfiles/src/feed.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<generator uri="https://jorge.olano.dev/" version="0.0.1">jorge</generator>
<link href="{{ page.url | absolute_url}}" rel="self" type="application/atom+xml"/>
<link href="{{ site.config.url }}" rel="alternate" type="text/html"/>
<updated>{{ "now" | date: "%Y-%m-%d %H:%M" }}</updated>
<updated>{{ "now" | date: "%Y-%m-%dT%H:%M:%SZ" }}</updated>
<id>{{ page.url | absolute_url}}</id>
<title type="html">{{ site.config.name }}</title>
<author>
Expand All @@ -16,8 +16,8 @@
{% assign post_title = post.title | strip_html | normalize_whitespace | xml_escape %}
<title type="html">{{ post.title }}</title>
<link href="{{ post.url | absolute_url }}" rel="alternate" type="text/html" title="{{ post.title }}"/>
<published>{{ post.date | date: "%Y-%m-%d %H:%M" }}</published>
<updated>{{ post.date | date: "%Y-%m-%d %H:%M" }}</updated>
<published>{{ post.date | date: "%Y-%m-%dT%H:%M:%SZ" }}</published>
<updated>{{ post.date | date: "%Y-%m-%dT%H:%M:%SZ" }}</updated>
<id>{{ post.url | absolute_url }}</id>
<author>
<name>{{ post.author | default:site.config.author }}</name>
Expand Down
6 changes: 3 additions & 3 deletions docs/src/feed.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<generator uri="https://jorge.olano.dev/" version="0.0.1">jorge</generator>
<link href="{{ page.url | absolute_url}}" rel="self" type="application/atom+xml"/>
<link href="{{ site.config.url }}" rel="alternate" type="text/html"/>
<updated>{{ "now" | date: "%Y-%m-%d %H:%M" }}</updated>
<updated>{{ "now" | date: "%Y-%m-%dT%H:%M:%SZ" }}</updated>
<id>{{ page.url | absolute_url}}</id>
<title type="html">{{ site.config.name }}</title>
<author>
Expand All @@ -16,8 +16,8 @@
{% assign post_title = post.title | strip_html | normalize_whitespace | xml_escape %}
<title type="html">{{ post.title }}</title>
<link href="{{ post.url | absolute_url }}" rel="alternate" type="text/html" title="{{ post.title }}"/>
<published>{{ post.date | date: "%Y-%m-%d %H:%M" }}</published>
<updated>{{ post.date | date: "%Y-%m-%d %H:%M" }}</updated>
<published>{{ post.date | date: "%Y-%m-%dT%H:%M:%SZ" }}</published>
<updated>{{ post.date | date: "%Y-%m-%dT%H:%M:%SZ" }}</updated>
<id>{{ post.url | absolute_url }}</id>
<author>
<name>{{ post.author | default:site.config.author }}</name>
Expand Down

0 comments on commit 4bf7eb4

Please sign in to comment.