Fix the RSS and Atom feeds
This commit is contained in:
		
							parent
							
								
									a4f54d34f6
								
							
						
					
					
						commit
						d685f2e647
					
				
					 3 changed files with 7 additions and 6 deletions
				
			
		| 
						 | 
				
			
			@ -12,7 +12,7 @@
 | 
			
		|||
<feed xmlns="http://www.w3.org/2005/Atom">
 | 
			
		||||
  <title>{{ .Site.Title }}</title>
 | 
			
		||||
  <link href="{{ .Permalink }}" />
 | 
			
		||||
  <link href="{{ `/feed.xml` | absURL }}" rel="self" />
 | 
			
		||||
  <link href="{{ `/feed.atom` | absURL }}" rel="self" />
 | 
			
		||||
  <link href="{{ `/icons/favicon.png` | absURL }}" rel="shortcut icon" />
 | 
			
		||||
  {{ if not .Date.IsZero }}<updated>{{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</updated>{{ end }}
 | 
			
		||||
  <id>{{ .Permalink }}</id>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -21,7 +21,7 @@
 | 
			
		|||
    <title>{{ .Site.Title }}</title>
 | 
			
		||||
    <link>{{ .Permalink }}</link>
 | 
			
		||||
    <description>Recent content on {{ .Site.Title }}</description>
 | 
			
		||||
    <generator>Hugo {{ hugo.Version }} -- gohugo.io</generator>
 | 
			
		||||
    <generator>Hugo {{ hugo.Version }}</generator>
 | 
			
		||||
    {{ with .Site.LanguageCode }}<language>{{ . }}</language>{{ end }}
 | 
			
		||||
    {{ with .Site.Author }}
 | 
			
		||||
      <managingEditor>{{ .name }} <{{ .email }}></managingEditor>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,10 +1,11 @@
 | 
			
		|||
<title>{{ .Title }}</title>
 | 
			
		||||
<id>{{ .Permalink }}</id>
 | 
			
		||||
<link href="{{ .Permalink }}" />
 | 
			
		||||
<published>{{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</published>
 | 
			
		||||
<updated>{{ .Lastmod.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</updated>
 | 
			
		||||
{{- range slice "series" "categories" "tags" -}}
 | 
			
		||||
  {{- range $.GetTerms . -}}
 | 
			
		||||
{{ range slice "series" "categories" "tags" }}
 | 
			
		||||
  {{- range $.GetTerms . }}
 | 
			
		||||
  {{- $scheme := (.Site.GetPage (printf "/%s" .Section)).Permalink -}}
 | 
			
		||||
  <category term="{{ .Name }}" scheme="{{ $scheme }}" label="{{ .Title }}" />
 | 
			
		||||
  {{- end -}}
 | 
			
		||||
{{- end -}}
 | 
			
		||||
  {{ end -}}
 | 
			
		||||
{{ end -}}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue