aboutsummaryrefslogblamecommitdiff
path: root/_includes/feed.atom
blob: c4a0e3d8f27f4e1aadcbca8ba33d9ce8d6464144 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                                        
                                                                                      
                                                                                                         


                                                        
                                              
                                                                                                  
 



                                                       
 
                                                                                              
                            





                                                                                                                            
 
                                                                                                                                    

              

                                                           

               
                                                                                                         


              
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="{{ include.lang }}">
  <link href="{{ page.url | absolute_url }}" rel="self" type="application/atom+xml" />
  <link href="{{ '/' | absolute_url }}" rel="alternate" type="text/html" hreflang="{{ include.lang }}" />
  <updated>{{ site.time | date_to_xmlschema }}</updated>
  <id>{{ page.url | absolute_url | xml_escape }}</id>

  <title>{{ site.title | xml_escape }}</title>
  <subtitle>{{ site.t[include.kind].feed.title[include.lang] | smartify | xml_escape }}</subtitle>

  <author>
    <name>{{ site.author.name | xml_escape }}</name>
    <email>{{ site.author.email | xml_escape }}</email>
  </author>

  {% assign entries = include.entries | where:"lang", include.lang | sort: "date" | reverse %}
  {% for entry in entries %}
    <entry xml:lang="{{ entry.lang }}">
      <title type="html">{{ entry.title | smartify | strip_html | normalize_whitespace | xml_escape }}</title>
      <link href="{{ entry.url | absolute_url }}" rel="alternate" type="text/html" title="{{ entry.title | xml_escape }}" />
      <published>{{ entry.date | date_to_xmlschema }}</published>
      <updated>{{ entry.updated_at | default: entry.date | date_to_xmlschema }}</updated>
      <id>{{ entry.url | absolute_url | xml_escape }}</id>

      <content type="html" xml:base="{{ entry.url | absolute_url | xml_escape }}">{{ entry.content | strip | xml_escape }}</content>

      <author>
        <name>{{ site.author.name | xml_escape }}</name>
        <email>{{ site.author.email | xml_escape }}</email>
      </author>

      <summary type="html">{{ entry.excerpt | strip_html | normalize_whitespace | xml_escape }}</summary>
    </entry>
  {% endfor %}
</feed>