atom.xml (1567B)
1 <?xml version="1.0" encoding="UTF-8"?> 2 <feed xmlns="http://www.w3.org/2005/Atom" xml:lang="{{ lang }}"> 3 <title>{{ config.title }} 4 {%- if term %} - {{ term.name }} 5 {%- elif section.title %} - {{ section.title }} 6 {%- endif -%} 7 </title> 8 {%- if config.description %} 9 <subtitle>{{ config.description }}</subtitle> 10 {%- endif %} 11 <link href="{{ feed_url | safe }}" rel="self" type="application/atom+xml"/> 12 <link href=" 13 {%- if section -%} 14 {{ section.permalink | escape_xml | safe }} 15 {%- else -%} 16 {{ config.base_url | escape_xml | safe }} 17 {%- endif -%} 18 "/> 19 <generator uri="https://www.getzola.org/">Zola</generator> 20 <updated>{{ last_updated | date(format="%+") }}</updated> 21 <id>{{ feed_url | safe }}</id> 22 {%- for page in pages %} 23 <entry xml:lang="{{ page.lang }}"> 24 <title>{{ page.title }}</title> 25 <published>{{ page.date | date(format="%+") }}</published> 26 <updated>{{ page.updated | default(value=page.date) | date(format="%+") }}</updated> 27 <author> 28 <name> 29 {%- if page.authors -%} 30 {{ page.authors[0] }} 31 {%- elif config.author -%} 32 {{ config.author }} 33 {%- else -%} 34 Unknown 35 {%- endif -%} 36 </name> 37 </author> 38 <link rel="alternate" href="{{ page.permalink | safe }}" type="text/html"/> 39 <id>{{ page.permalink | safe }}</id> 40 <content type="html">{{ page.content }}</content> 41 </entry> 42 {%- endfor %} 43 </feed>