Skip to main content
Module

x/lume_theme_simple_blog/feed.xml.njk

Lume theme to create a simple blog
Go to Latest
File
<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"> <title>{{ metas.site }}</title> <subtitle>{{ metas.description }}</subtitle> <link href="{{ url | url(true) }}" rel="self"/> <link href="{{ "/" | url(true) }}"/> {% set lastPage = search.pages() | last %} <updated>{{ lastPage.data.date | date("ATOM") }}</updated> <id>{{ "/" | url(true) }}</id> <author> <name>{{ author.name }}</name> <email>{{ author.email }}</email> </author> {%- for post in search.pages("type=post", "date=desc", 10) %} <entry> <title>{{ post.data.title }}</title> <link href="{{ post.data.url | url(true) }}"/> <updated>{{ post.data.date | date("ATOM") }}</updated> <id>{{ post.data.url | url(true) }}</id> {% set content = post.data.excerpt or post.data.content %} <content type="html">{{ content | md | htmlUrl(true) }}</content> </entry> {%- endfor %}</feed>