Move feed file to make it more obvious it’s an Atom feed

This commit is contained in:
Zach Leatherman 2024-04-24 17:26:14 -05:00
parent 56d15576a2
commit 26303bb5f1
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@
<meta name="description" content="{{ description or metadata.description }}"> <meta name="description" content="{{ description or metadata.description }}">
{#- Atom and JSON feeds included by default #} {#- Atom and JSON feeds included by default #}
<link rel="alternate" href="feed/feed.njk" type="application/atom+xml" title="{{ metadata.title }}"> <link rel="alternate" href="feed/atom.njk" type="application/atom+xml" title="{{ metadata.title }}">
<link rel="alternate" href="feed/json.njk" type="application/json" title="{{ metadata.title }}"> <link rel="alternate" href="feed/json.njk" type="application/json" title="{{ metadata.title }}">
{#- Uncomment this if youd like folks to know that you used Eleventy to build your site! #} {#- Uncomment this if youd like folks to know that you used Eleventy to build your site! #}

View File

@ -18,7 +18,7 @@ eleventyNavigation:
<email>{{ metadata.author.email }}</email> <email>{{ metadata.author.email }}</email>
</author> </author>
{%- for post in collections.posts | reverse %} {%- for post in collections.posts | reverse %}
{% set absolutePostUrl %}{{ post.url | htmlBaseUrl(metadata.url) }}{% endset %} {%- set absolutePostUrl %}{{ post.url | htmlBaseUrl(metadata.url) }}{% endset %}
<entry> <entry>
<title>{{ post.data.title }}</title> <title>{{ post.data.title }}</title>
<link href="{{ absolutePostUrl }}"/> <link href="{{ absolutePostUrl }}"/>