diff --git a/src/_includes/partials/global/meta-info.njk b/src/_includes/partials/global/meta-info.njk index f0ced13..1742f0a 100644 --- a/src/_includes/partials/global/meta-info.njk +++ b/src/_includes/partials/global/meta-info.njk @@ -13,6 +13,7 @@ {{ pageTitle }} + diff --git a/src/feed.njk b/src/feed.njk new file mode 100644 index 0000000..1aaa370 --- /dev/null +++ b/src/feed.njk @@ -0,0 +1,35 @@ +---json +{ + "permalink": "feed.xml", + "eleventyExcludeFromCollections": true, + "metadata": { + "title": "Actualité d'Astrolabe", + "description": "Retrouvez nos dernières actualités", + "language": "fr", + "base": "https://www.astrolabe.coop/", + "author": "Astrolabe CAE" + } +} +--- + + + + {{ metadata.title }} + {{ metadata.base | addPathPrefixToFullUrl }} + + {{ metadata.description }} + {{ metadata.language or page.lang }} + {%- for post in collections.news %} + {%- set absolutePostUrl = post.url | htmlBaseUrl(metadata.base) %} + + {{ post.data.title }} + {{ absolutePostUrl }} + {{ post.description }} + {{ post.date | dateToRfc822 }} + {{ post.data.type }} + {{ post.data.author or metadata.author }} + {{ absolutePostUrl }} + + {%- endfor %} + + \ No newline at end of file