Skip to content

Commit

Permalink
Add rel="alternate" to Atom post links (#1868)
Browse files Browse the repository at this point in the history
This improves compatibility with some readers, e.g. Miniflux, which otherwise don't detect these.
  • Loading branch information
lnicola committed May 21, 2022
1 parent 76b0b5f commit a385dba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/templates/src/builtins/atom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<title>{{ page.title }}</title>
<published>{{ page.date | date(format="%+") }}</published>
<updated>{{ page.updated | default(value=page.date) | date(format="%+") }}</updated>
<link href="{{ page.permalink | safe }}" type="text/html"/>
<link rel="alternate" href="{{ page.permalink | safe }}" type="text/html"/>
<id>{{ page.permalink | safe }}</id>
<content type="html">{{ page.content }}</content>
</entry>
Expand Down

0 comments on commit a385dba

Please sign in to comment.