Compare commits
No commits in common. "354a4363432328f041bcae37ec6b501bedc101e2" and "518f0c2a91c0b5182862ef737241b02fbbfe85f9" have entirely different histories.
354a436343
...
518f0c2a91
2 changed files with 6 additions and 47 deletions
13
config.toml
13
config.toml
|
@ -96,7 +96,8 @@ paginate = 20
|
||||||
url = "/atom.xml"
|
url = "/atom.xml"
|
||||||
weight = 10
|
weight = 10
|
||||||
|
|
||||||
[mediaTypes."application/atom+xml"]
|
[mediaTypes]
|
||||||
|
[mediaTypes."application/atom"]
|
||||||
suffixes = ["xml"]
|
suffixes = ["xml"]
|
||||||
|
|
||||||
[outputFormats]
|
[outputFormats]
|
||||||
|
@ -109,22 +110,16 @@ paginate = 20
|
||||||
[outputFormats.RSS]
|
[outputFormats.RSS]
|
||||||
mediaType = "application/rss"
|
mediaType = "application/rss"
|
||||||
baseName = "rss"
|
baseName = "rss"
|
||||||
rel = "alternate"
|
|
||||||
noUgly = true
|
|
||||||
isPlainText = false
|
isPlainText = false
|
||||||
permalinkable = false
|
|
||||||
|
|
||||||
[outputFormats.Atom]
|
[outputFormats.Atom]
|
||||||
mediaType = "application/atom+xml"
|
mediaType = "application/atom"
|
||||||
baseName = "atom"
|
baseName = "atom"
|
||||||
rel = "alternate"
|
|
||||||
isPlainText = false
|
isPlainText = false
|
||||||
noUgly = true
|
|
||||||
permalinkable = false
|
|
||||||
|
|
||||||
[outputs]
|
[outputs]
|
||||||
home = ["HTML", "RSS", "MANIFEST", "Atom"]
|
home = ["HTML", "RSS", "MANIFEST", "Atom"]
|
||||||
term = ["HTML", "RSS", "Atom"]
|
taxonomy = ["HTML", "RSS", "Atom"]
|
||||||
|
|
||||||
# Necessary for ox-hugo
|
# Necessary for ox-hugo
|
||||||
# See https://ox-hugo.scripter.co/doc/goldmark/
|
# See https://ox-hugo.scripter.co/doc/goldmark/
|
||||||
|
|
|
@ -1,37 +0,0 @@
|
||||||
{{- $pctx := . -}}
|
|
||||||
{{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}}
|
|
||||||
{{- $pages := slice -}}
|
|
||||||
{{- if or $.IsHome $.IsSection -}}
|
|
||||||
{{- $pages = $pctx.RegularPages -}}
|
|
||||||
{{- else -}}
|
|
||||||
{{- $pages = $pctx.Pages -}}
|
|
||||||
{{- end -}}
|
|
||||||
{{- $limit := .Site.Config.Services.RSS.Limit -}}
|
|
||||||
{{- if ge $limit 1 -}}
|
|
||||||
{{- $pages = $pages | first $limit -}}
|
|
||||||
{{- end -}}
|
|
||||||
<feed xmlns="http://www.w3.org/2005/Atom">
|
|
||||||
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
|
|
||||||
<link href="{{ .Permalink }}index.xml" rel="self"/>
|
|
||||||
<link href="{{ .Permalink }}"/>{{ if not .Date.IsZero }}
|
|
||||||
<updated>{{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</updated>{{ end }}
|
|
||||||
<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 $pages }}
|
|
||||||
<entry>
|
|
||||||
{{ `<title type="html"><![CDATA[` | safeHTML }}{{ .Title }}]]></title>
|
|
||||||
<link href="{{ .Permalink }}"/>
|
|
||||||
<id>{{ .Permalink }}</id>{{ with $.Site.Params.Author.name }}
|
|
||||||
<author>
|
|
||||||
<name>{{.}}</name>
|
|
||||||
</author>{{end}}
|
|
||||||
<published>{{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</published>
|
|
||||||
<updated>{{ .Lastmod.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</updated>
|
|
||||||
{{ if .Content }}
|
|
||||||
{{ `<content type="html"><![CDATA[` | safeHTML }}{{ .Content }}]]></content>
|
|
||||||
{{ end }}
|
|
||||||
</entry>{{ end }}
|
|
||||||
</feed>
|
|
1
layouts/term/term.atom.xml
Symbolic link
1
layouts/term/term.atom.xml
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../index.atom.xml
|
Loading…
Reference in a new issue