forked from Bunteshaus/bunteshaus.de
add atom feed
This commit is contained in:
parent
ac8b08357c
commit
88ddb46286
|
@ -24,3 +24,16 @@ defaultContentLanguage = "de"
|
|||
[params.shareButtons]
|
||||
size = "medium"
|
||||
networks = ["email", "pinterest", "facebook", "twitter", "whatsapp"]
|
||||
|
||||
[mediaTypes."application/atom+xml"]
|
||||
suffixes = ["xml"]
|
||||
[outputFormats.Atom]
|
||||
# https://validator.w3.org/feed/docs/atom.html#whatIsAtom
|
||||
name = "Atom"
|
||||
mediaType = "application/atom+xml"
|
||||
baseName = "atom" # generated file = <baseName>.<mediaType."application/atom+xml".suffixes[0]> = atom.xml
|
||||
isPlainText = false
|
||||
rel = "alternate"
|
||||
isHTML = false
|
||||
noUgly = true
|
||||
permalinkable = false
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
home = ["HTML", "RSS", "JSON"]
|
||||
section = ["HTML", "RSS"]
|
||||
home = ["HTML", "Atom", "RSS", "JSON"]
|
||||
section = ["HTML", "Atom", "RSS"]
|
||||
page = ["HTML"]
|
||||
taxonomy = ["HTML", "RSS"]
|
||||
term = ["HTML"]
|
||||
taxonomy = ["HTML", "Atom", "RSS"]
|
||||
term = ["HTML", "ATOM", "RSS"]
|
||||
|
|
|
@ -1,257 +0,0 @@
|
|||
[home]
|
||||
other = "Startseite"
|
||||
|
||||
[executive]
|
||||
other = "Vorstand"
|
||||
|
||||
[and]
|
||||
other = "und"
|
||||
|
||||
[events]
|
||||
other = "Termine"
|
||||
|
||||
[event]
|
||||
other = "Termin"
|
||||
|
||||
[archive]
|
||||
other = "Archiv"
|
||||
|
||||
[imprint]
|
||||
other = "Impressum"
|
||||
|
||||
[recent_posts]
|
||||
other = "Aktuelle Beiträge"
|
||||
|
||||
[featured_posts]
|
||||
other = "Wichtig"
|
||||
|
||||
[no]
|
||||
other = "Nein"
|
||||
|
||||
[yes]
|
||||
other = "Ja"
|
||||
|
||||
[recurrent]
|
||||
other = "Feste Termine"
|
||||
|
||||
[contact]
|
||||
other = "Kontakt"
|
||||
|
||||
[dataprotection]
|
||||
other = "Datenschutz"
|
||||
|
||||
[mail]
|
||||
other = "Email"
|
||||
|
||||
[tel]
|
||||
other = "Telefon"
|
||||
|
||||
[news]
|
||||
other = "Neuigkeiten"
|
||||
|
||||
[from]
|
||||
other = "ab"
|
||||
|
||||
[at]
|
||||
other = "am"
|
||||
|
||||
[everyfemale]
|
||||
other = "jede"
|
||||
|
||||
[everymale]
|
||||
other = "jeden"
|
||||
|
||||
[everysubject]
|
||||
other = "jedes"
|
||||
|
||||
[since]
|
||||
other = "seit"
|
||||
|
||||
[days]
|
||||
other = "Tage"
|
||||
|
||||
[calendar]
|
||||
other = "Kalender"
|
||||
|
||||
[MO]
|
||||
other = "Montag"
|
||||
[TU]
|
||||
other = "Dienstag"
|
||||
[WE]
|
||||
other = "Mittwoch"
|
||||
[TH]
|
||||
other = "Donnerstag"
|
||||
[FR]
|
||||
other = "Freitag"
|
||||
[SA]
|
||||
other = "Samstag"
|
||||
[SU]
|
||||
other = "Sonntag"
|
||||
|
||||
[date]
|
||||
other = "Datum"
|
||||
|
||||
[time]
|
||||
other = "Zeit"
|
||||
|
||||
[categories]
|
||||
other = "Kategorien"
|
||||
|
||||
[tags]
|
||||
other = "Tags"
|
||||
|
||||
[repeat]
|
||||
other = "Wiederholen"
|
||||
|
||||
[end]
|
||||
other = "Ende"
|
||||
|
||||
[after]
|
||||
other = "nach"
|
||||
|
||||
[never]
|
||||
other = "niemals"
|
||||
|
||||
[duration]
|
||||
other = "Dauer"
|
||||
|
||||
[minutes]
|
||||
other = "Minuten"
|
||||
|
||||
[daily]
|
||||
other = "Täglich"
|
||||
|
||||
[DAILY]
|
||||
other = "Tag"
|
||||
|
||||
[weekly]
|
||||
other = "Wöchentlich"
|
||||
|
||||
[WEEKLY]
|
||||
other = "Woche"
|
||||
|
||||
[monthly]
|
||||
other = "Monatlich"
|
||||
|
||||
[MONTHLY]
|
||||
other = "Monat"
|
||||
|
||||
[yearly]
|
||||
other = "Jährlich"
|
||||
|
||||
[YEARLY]
|
||||
other = "Jahr"
|
||||
|
||||
[title]
|
||||
other = "Titel"
|
||||
|
||||
[description]
|
||||
other = "Beschreibung"
|
||||
|
||||
[location]
|
||||
other = "Ort"
|
||||
|
||||
[subject]
|
||||
other = "Inhalt"
|
||||
|
||||
[new]
|
||||
other = "Neu"
|
||||
|
||||
[generate]
|
||||
other = "Generieren"
|
||||
|
||||
[first]
|
||||
other = "Ersten"
|
||||
|
||||
[second]
|
||||
other = "Zweiten"
|
||||
|
||||
[third]
|
||||
other = "Dritten"
|
||||
|
||||
[fourth]
|
||||
other = "Vierten"
|
||||
|
||||
[last]
|
||||
other = "Letzten"
|
||||
|
||||
[Jan]
|
||||
other = "Januar"
|
||||
|
||||
[Feb]
|
||||
other = "Februar"
|
||||
|
||||
[Mar]
|
||||
other = "März"
|
||||
|
||||
[Apr]
|
||||
other = "April"
|
||||
|
||||
[May]
|
||||
other = "Mai"
|
||||
|
||||
[Jun]
|
||||
other = "Juni"
|
||||
|
||||
[Jul]
|
||||
other = "Juli"
|
||||
|
||||
[Aug]
|
||||
other = "August"
|
||||
|
||||
[Sep]
|
||||
other = "September"
|
||||
|
||||
[Oct]
|
||||
other = "Oktober"
|
||||
|
||||
[Nov]
|
||||
other = "November"
|
||||
|
||||
[Dec]
|
||||
other = "December"
|
||||
|
||||
[price]
|
||||
other = "Eintritt"
|
||||
|
||||
[nothing]
|
||||
other = "nichts"
|
||||
|
||||
[entry]
|
||||
other = "Eintritt"
|
||||
|
||||
[free]
|
||||
other = "Eintritt ist kostenlos."
|
||||
|
||||
[upcoming]
|
||||
other = "Anstehende Events"
|
||||
|
||||
[readmore]
|
||||
other = "weiterlesen"
|
||||
|
||||
[about]
|
||||
other = "Über uns"
|
||||
|
||||
[featured]
|
||||
other = "Wichtige Neuigkeiten"
|
||||
|
||||
[all]
|
||||
other = "Alle"
|
||||
|
||||
[ku]
|
||||
other = "Kurdî"
|
||||
|
||||
[en]
|
||||
other = "English"
|
||||
|
||||
[de]
|
||||
other = "Deutsch"
|
||||
|
||||
[translations]
|
||||
other = "Übersetzungen"
|
||||
|
||||
[pinned]
|
||||
other = "Angepinnt"
|
||||
|
||||
[when]
|
||||
other = "Wann"
|
|
@ -0,0 +1,37 @@
|
|||
{{- $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.Author.name }}
|
||||
<author>
|
||||
<name>{{.}}</name>{{ with $.Site.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.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>
|
|
@ -70,3 +70,8 @@
|
|||
{{ if $title }}<h1 class="title">{{ $title }}</h1> {{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ define "debug" }}
|
||||
{{ if and (ne .Kind "taxonomy") (ne .Kind "page") (ne .Kind "section") (ne .Kind "term")}}
|
||||
{{ site.Data.i18n.Languages }}<br>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in New Issue