feed.xml.njk 909 B

123456789101112131415161718192021222324
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <feed xmlns="http://www.w3.org/2005/Atom">
  3. <title>{{ metadata.title }}</title>
  4. <subtitle>{{ metadata.description }}</subtitle>
  5. <link href="{{ metadata.url | url(true) }}" rel="self"/>
  6. <link href="{{ "/" }}"/>
  7. {% set lastPage = search.pages() | last %}
  8. <updated>{{ lastPage.data.date | date("ATOM") }}</updated>
  9. <id>{{ "/" | url(true) }}</id>
  10. <author>
  11. <name>{{ metadata.author.name }}</name>
  12. <email>{{ metadata.author.email }}</email>
  13. </author>
  14. {%- for post in search.pages("jurnal", "date=desc", 10) %}
  15. <entry>
  16. <title>{{ post.data.title }}</title>
  17. <link href="{{ post.data.url | url(true) }}"/>
  18. <updated>{{ post.data.date | date("ATOM") }}</updated>
  19. <id>{{ post.data.url | url(true) }}</id>
  20. <content type="html">{{ post.data.content | md | htmlUrl }}</content>
  21. </entry>
  22. {%- endfor %}
  23. </feed>