@@ -237,25 +237,25 @@ Iterate on collections and output the feed
237237``` html
238238{% raw %}
239239---
240- # Metadata comes from _data/metadata .json
241- permalink: "{{ metadata .feed.path }}"
240+ # Metadata comes from _data/site .json
241+ permalink: "{{ site .feed.path }}"
242242eleventyExcludeFromCollections: true
243243---
244244<?xml version =" 1.0" encoding =" utf-8" ?>
245245<feed xmlns =" http://www.w3.org/2005/Atom" >
246- <title >{{ metadata .title }}</title >
247- <subtitle >{{ metadata .feed.subtitle }}</subtitle >
248- {% set absoluteUrl %}{{ metadata .feed.path | url | absoluteUrl(metadata .url) }}{% endset %}
246+ <title >{{ site .title }}</title >
247+ <subtitle >{{ site .feed.subtitle }}</subtitle >
248+ {% set absoluteUrl %}{{ site .feed.path | url | absoluteUrl(site .url) }}{% endset %}
249249 <link href =" {{ absoluteUrl }}" rel =" self" />
250- <link href =" {{ metadata .url }}" />
250+ <link href =" {{ site .url }}" />
251251 <updated >{{ collections.posts | rssLastUpdatedDate }}</updated >
252- <id >{{ metadata .feed.id }}</id >
252+ <id >{{ site .feed.id }}</id >
253253 <author >
254- <name >{{ metadata .author.name }}</name >
255- <email >{{ metadata .author.email }}</email >
254+ <name >{{ site .author.name }}</name >
255+ <email >{{ site .author.email }}</email >
256256 </author >
257257 {%- for post in collections.posts | reverse %}
258- {% set absolutePostUrl %}{{ post.url | url | absoluteUrl(metadata .url) }}{% endset %}
258+ {% set absolutePostUrl %}{{ post.url | url | absoluteUrl(site .url) }}{% endset %}
259259 <entry >
260260 <title >{{ post.data.title }}</title >
261261 <link href =" {{ absolutePostUrl }}" />
@@ -274,7 +274,7 @@ eleventyExcludeFromCollections: true
274274eleventyComputed:
275275 meta:
276276 author:
277- name: "{{ metadata .author.name }}"
277+ name: "{{ site .author.name }}"
278278 published: "{{ date | iso8601 }}"
279279 modified: "{% if updateDate %}{{ updateDate | iso8601 }}{% endif %}"
280280```
0 commit comments