Reuse feed backs from metadata file and adds comments about it.
This commit is contained in:
parent
7be229d9d0
commit
b078457afb
@ -14,6 +14,7 @@
|
||||
},
|
||||
"author": {
|
||||
"name": "Your Name Here",
|
||||
"email": "youremailaddress@example.com"
|
||||
"email": "youremailaddress@example.com",
|
||||
"url": "https://myurl.com/"
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,6 @@
|
||||
---
|
||||
permalink: feed/feed.xml
|
||||
# Metadata comes from _data/metadata.json
|
||||
permalink: "{{ metadata.feed.path }}"
|
||||
eleventyExcludeFromCollections: true
|
||||
---
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
@ -1,5 +1,6 @@
|
||||
---
|
||||
permalink: feed/feed.json
|
||||
# Metadata comes from _data/metadata.json
|
||||
permalink: "{{ metadata.jsonfeed.path }}"
|
||||
eleventyExcludeFromCollections: true
|
||||
---
|
||||
{
|
||||
@ -13,8 +14,8 @@ eleventyExcludeFromCollections: true
|
||||
"url": "{{ metadata.author.url }}"
|
||||
},
|
||||
"items": [
|
||||
{%- for post in collections.posts %}
|
||||
{% set absolutePostUrl %}{{ post.url | url | absoluteUrl(metadata.url) }}{% endset -%}
|
||||
{%- for post in collections.posts | reverse %}
|
||||
{%- set absolutePostUrl %}{{ post.url | url | absoluteUrl(metadata.url) }}{% endset -%}
|
||||
{
|
||||
"id": "{{ absolutePostUrl }}",
|
||||
"url": "{{ absolutePostUrl }}",
|
||||
|
Loading…
Reference in New Issue
Block a user