diff --git a/config/_default/config.toml b/config/_default/config.toml index 88dcb24b..b5eba11b 100644 --- a/config/_default/config.toml +++ b/config/_default/config.toml @@ -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 = . = atom.xml + isPlainText = false + rel = "alternate" + isHTML = false + noUgly = true + permalinkable = false diff --git a/config/_default/outputs.toml b/config/_default/outputs.toml index 4cb2b888..e4b438da 100644 --- a/config/_default/outputs.toml +++ b/config/_default/outputs.toml @@ -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"] diff --git a/themes/buha/i18n/old_de.toml b/themes/buha/i18n/old_de.toml deleted file mode 100644 index 66b6e2ee..00000000 --- a/themes/buha/i18n/old_de.toml +++ /dev/null @@ -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" \ No newline at end of file diff --git a/themes/buha/layouts/_default/list.atom.xml b/themes/buha/layouts/_default/list.atom.xml new file mode 100644 index 00000000..19fa31ba --- /dev/null +++ b/themes/buha/layouts/_default/list.atom.xml @@ -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 -}} + + {{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }} + + {{ if not .Date.IsZero }} + {{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }}{{ end }} + {{ .Permalink }}{{ with .Site.Author.name }} + + {{.}}{{ with $.Site.Author.email }} + {{.}}{{end}} + {{end}} + Hugo -- gohugo.io{{ range $pages }} + + {{ `<![CDATA[` | safeHTML }}{{ .Title }}]]> + + {{ .Permalink }}{{ with $.Site.Author.name }} + + {{.}} + {{end}} + {{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }} + {{ .Lastmod.Format "2006-01-02T15:04:05-07:00" | safeHTML }} + {{ if .Content }} + {{ ` + {{ end }} + {{ end }} + diff --git a/themes/buha/layouts/partials/snippets/banner_new.html b/themes/buha/layouts/partials/snippets/banner_new.html index e12e15ff..8a08880b 100644 --- a/themes/buha/layouts/partials/snippets/banner_new.html +++ b/themes/buha/layouts/partials/snippets/banner_new.html @@ -70,3 +70,8 @@ {{ if $title }}

{{ $title }}

{{ end }} {{ end }} +{{ define "debug" }} + {{ if and (ne .Kind "taxonomy") (ne .Kind "page") (ne .Kind "section") (ne .Kind "term")}} + {{ site.Data.i18n.Languages }}
+ {{ end }} +{{ end }}