Skip to content

Commit

Permalink
theme: make feed 'updated' deterministic
Browse files Browse the repository at this point in the history
  • Loading branch information
Krinkle committed Mar 27, 2022
1 parent dc058de commit 2911446
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions feed.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ layout: null
<generator>Jekyll</generator>
<link href="{{ page.url | absolute_url }}" rel="self" type="application/atom+xml" />
<link href="{{ '/' | absolute_url }}" rel="alternate" type="text/html" {% if site.lang %}hreflang="{{ site.lang }}" {% endif %}/>
<updated>{{ site.time | date_to_xmlschema }}</updated>
<id>{{ page.url | absolute_url | xml_escape }}</id>
<title type="html">{{ site.title | xml_escape }}</title>
<subtitle>{{ site.description | xml_escape }}</subtitle>
{%- assign posts = site.posts | sort: "date" | reverse -%}
{%- assign last_post = posts | first -%}
{%- assign last_updated = last_post.date | default: site.time %}
<updated>{{ last_updated | date_to_xmlschema }}</updated>

{%- assign matomo_cvar = '{"1":["Via","RSS"]}' -%}
{% assign posts = site.posts | sort: "date" | reverse %}
{% for post in posts -%}
{%- assign _excluded = false -%}
{%- for tag in site.plainwhite.exclude_tags -%}
Expand Down

1 comment on commit 2911446

@Krinkle
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Upstreamed to jekyll/jekyll-feed#368.

Please sign in to comment.