diff --git a/config.yaml b/config.yaml index fe68166..ef5790d 100644 --- a/config.yaml +++ b/config.yaml @@ -1,3 +1,11 @@ +outputFormats: + jsonfeed: + mediaType: "application/json" + baseName: "feed" + isPlainText: true + podcast: + mediaType: "application/rss+xml" + baseName: "podcast" module: hugoVersion: extended: true diff --git a/layouts/_default/list.mentions.json b/layouts/_default/list.mentions.json deleted file mode 100644 index e280548..0000000 --- a/layouts/_default/list.mentions.json +++ /dev/null @@ -1,28 +0,0 @@ -{{- $mentions := .Site.Data.mentions -}} -{{- $allmentions := slice -}} -{{- range $key, $pagementions := $mentions -}} -{{- range $pagekey, $mention := $pagementions -}} -{{- if $allmentions -}} -{{- $allmentions = $allmentions | append $mention -}} -{{- else -}} -{{- $allmentions = (slice $mention) -}} -{{- end -}} -{{- end -}} -{{- end -}} -{{- $allmentions = sort $allmentions "date" "desc" -}} -{ - "version": "https://jsonfeed.org/version/1", - "title": "{{ T "interactions" }} {{ .Site.Title }}", - "feed_url": "{{ .Permalink }}", - "items": [ - {{ $delimiter := "" -}} - {{- range first 30 $allmentions -}} - {{- $delimiter -}}{ - "id": "{{ .source }}", - "url": "{{ .source }}", - "date_published": "{{ dateFormat "2006-01-02T15:04:05-07:00" .date }}" - } - {{- $delimiter = "," -}} - {{- end -}} - ] -} \ No newline at end of file diff --git a/layouts/_default/section.podcast.xml b/layouts/_default/section.podcast.xml new file mode 100644 index 0000000..ccc9c11 --- /dev/null +++ b/layouts/_default/section.podcast.xml @@ -0,0 +1,41 @@ +{{- printf "" | safeHTML }} + + + {{ .Title }} + {{ .Permalink }} + {{ with .OutputFormats.Get "PODCAST" }}{{ printf "" .Permalink .MediaType | safeHTML }}{{ end }} + {{ .Summary | truncate 4000 ""}} + {{ .Summary | truncate 4000 ""}} + {{ with .Site.LanguageCode }}{{.}}{{end}} + {{ with .Site.Copyright }}{{.}}{{end}} + {{ dateFormat "Mon, 2 Jan 2006 15:04:05 -0700" .Lastmod }} + {{ .Site.Author.name }} + episodic + + {{ .Site.Author.name }} + {{ .Params.podcast.email }} + + + + {{ .Params.podcast.image }} + {{ .Title }} + {{ .Permalink }} + + + {{ .Params.explicit | default "no" }} + {{ range .RegularPages }} + + {{ .Title }} + {{ .Title }} + {{ .Permalink }} + {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} + {{ if .Params.guid }}{{ .Params.guid }}{{ else }}{{ .Permalink }}{{ end }} + {{ .Site.Author.name }} + {{ .Summary | plainify }} + {{ .Summary | plainify }} + {{ "" | safeHTML}} + + + {{ end }} + +