aboutsummaryrefslogblamecommitdiff
path: root/layouts/index.atom.xml
blob: a80fc536c0ff842bd926e67eab7f59554bb10004 (plain) (tree)
1
2
3
4
5
6
7
8
                                          
                                  

                                                    


                                     
          






                                         

                                                                                               


                                                                          

                                       

                        

             


                                                                                

           
       
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>{{ .Site.Title }}</title>
  <link href="{{ .Permalink }}feed.xml" rel="self"/>
  <link href="{{ .Permalink }}"/>
  <id>{{ .Permalink }}</id>

  {{ with .Site.Params.Author.name }}
  <author>
    <name>{{.}}</name>
    {{ with $.Site.Params.Author.email }}
    <email>{{.}}</email>
    {{end}}
  </author>
  {{end}}

  <generator>Hugo -- gohugo.io</generator>
  {{ range where (first 10 (where .Site.Pages "Section" "blog")) "Params.hidden" "ne" "true" }}
  <entry>
    {{ `<title type="html"><![CDATA[` | safeHTML }}{{ .Title }}]]></title>
    <link href="{{ .Permalink }}"/>
    <id>{{ .Permalink }}</id>
    {{ with .Site.Params.Author.name }}
    <author>
      <name>{{.}}</name>
    </author>
    {{end}}
    {{- $fmt := "2006-01-02T15:04:05-07:00" }}
    <published>{{ .Date.Format $fmt | safeHTML }}</published>
    {{ `<content type="html"><![CDATA[` | safeHTML }}{{ .Content }}]]></content>
  </entry>
  {{ end }}
</feed>