jk.nipponalba.scot website https://jk.nipponalba.scot
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

55 lines
2.4 KiB

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
  1. {{- $pages := where .Site.RegularPages "Type" "in" .Site.Params.mainSections -}}
  2. {{- $limit := .Site.Config.Services.RSS.Limit -}}
  3. {{- if ge $limit 1 -}}
  4. {{- $pages = $pages | first $limit -}}
  5. {{- end -}}
  6. {{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
  7. <feed xmlns="http://www.w3.org/2005/Atom" xml:lang="{{ .Site.LanguageCode }}">
  8. <generator uri="https://gohugo.io/" version="{{ hugo.Version }}">Hugo</generator>
  9. <link href="http://pubsubhubbub.superfeedr.com/" rel="hub"/>
  10. <title>{{ .Site.Title }}</title>
  11. {{- with .Site.Params.brand.tagline }}
  12. <subtitle>{{ . }}</subtitle>
  13. {{- end }}
  14. <id>{{ "/" | absLangURL }}</id>
  15. <author>
  16. <name>{{ .Site.Params.author }}</name>
  17. <uri>{{ "/" | absLangURL }}</uri>
  18. </author>
  19. <generator>Hugo gohugo.io</generator>
  20. {{- with .Site.Copyright }}
  21. <rights>{{ . }}</rights>
  22. {{- end }}
  23. {{- with .Site.Params.brand.icon }}
  24. <icon>{{ . | absURL }}</icon>
  25. {{- end }}
  26. {{- with .Site.Params.brand.logo }}
  27. <logo>{{ . | absURL }}</logo>
  28. {{- end }}
  29. <updated>{{ dateFormat "2006-01-02T15:04:05Z" now.UTC | safeHTML }}</updated>
  30. {{- with .OutputFormats.Get "ATOM" }}
  31. {{ printf `<link rel="self" type="%s" href="%s" hreflang="%s"/>` .MediaType.Type .Permalink $.Site.LanguageCode | safeHTML }}
  32. {{- end }}
  33. {{- range .AlternativeOutputFormats }}
  34. {{ printf `<link rel="alternate" type="%s" href="%s" hreflang="%s"/>` .MediaType.Type .Permalink $.Site.LanguageCode | safeHTML }}
  35. {{- end }}
  36. {{- range $pages }}
  37. <entry>
  38. <title>{{ .Title }}</title>
  39. {{- $author := index .Site.Data.authors (.Params.author | default "default") }}
  40. <author>
  41. <name>{{ $author.name }}</name>
  42. <uri>{{ $author.uri }}</uri>
  43. </author>
  44. <id>{{ .Permalink }}</id>
  45. {{- if .IsTranslated -}}
  46. {{ range .Translations }}
  47. <link rel="alternate" href="{{ .Permalink }}" hreflang="{{ .Language.Lang }}"/>
  48. {{- end -}}
  49. {{ end }}
  50. <updated>{{ dateFormat "2006-01-02T15:04:05Z" .Lastmod.UTC | safeHTML }}</updated>
  51. <published>{{ dateFormat "2006-01-02T15:04:05Z" .Date.UTC | safeHTML }}</published>
  52. <content type="html">{{ trim .Content "\n" }}</content>
  53. </entry>
  54. {{- end }}
  55. </feed>