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

                                                                        
                                                                                      
                                                                                                         


                                                        

                                                                                    
 



                                                       
 
                                 
                                      


                                                                                                                          

                                                                                       
 
                                                                                                                                  

              

                                                           

               
                                                                                                        


              
<?xml version="1.0" encoding="UTF-8"?>
<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 type="html">{{ site.title | smartify | xml_escape }}</title>
  <subtitle>{{ site.t.feed_title[include.lang] | smartify | xml_escape }}</subtitle>

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

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

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

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

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