atom.xml (2396B)
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=" 39 {%- if page.extra.type and page.extra.type == "link" -%} 40 {{ page.extra.link | safe }} 41 {%- else -%} 42 {{ page.permalink | safe }} 43 {%- endif -%} 44 " type="text/html"/> 45 <id>{{ page.permalink | safe }}</id> 46 <content type="html"> 47 {%- if page.extra is containing("book") %} 48 <small> 49 <i>{{ page.extra.book }}</i> by {{ page.extra.author }}. <br/> 50 Finished on {{ page.extra.finished | date(format="%B %d, %Y") }}. <br/> 51 Rating: {{ page.extra.rating }} <br/> 52 </small> 53 {%- elif page.extra.type and page.extra.type == "work" %} 54 <small> 55 Began: {{ page.extra.start | date(format="%d %b %Y") }} <br/> 56 Concluded: {{ page.extra.end | date(format="%d %b %Y") }} 57 </small> 58 {%- endif %} 59 {{ page.content }} 60 {%- if page.extra.type and page.extra.type == "link" %} 61 <a href="{{ page.permalink | safe }}">★</a> 62 {%- endif %} 63 </content> 64 </entry> 65 {%- endfor %} 66 </feed>