add custom enclosures to feeds

This commit is contained in:
Greg Gauthier 2022-01-01 23:45:38 +00:00
parent cf58a5bbe4
commit be813206df
25 changed files with 98 additions and 3 deletions

View File

@ -3,5 +3,6 @@ title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
series: ""
image: /img/
enclosure:
draft: true
---

View File

@ -3,6 +3,7 @@ title: "Cultural Knowledge and Discipline"
date: 2019-06-30T23:39:02Z
series: "1. Main Feed"
image: https://gmgauthier.us-east-1.linodeobjects.com/podcast/img/1295493-1561921958208-fd22b2408cfb.jpg
enclosure: podcast_2020-02-17_5d73a5c13752bfa50890b8854fe2269d.m4a
draft: false
---

View File

@ -3,6 +3,7 @@ title: "Interview: John Holroyd, Judging Religion"
date: 2019-11-10T23:29:54Z
series: "1. Main Feed"
image: https://gmgauthier.us-east-1.linodeobjects.com/podcast/img/1295493-1573424704372-82de3d61ca406.jpg
enclosure: podcast_2020-02-28_f8d982f11c04cf7105a0ec21597da316.m4a
draft: true
---

View File

@ -3,6 +3,7 @@ title: "Schopenhauer and the Freedom of the Will"
date: 2019-03-17T23:52:53Z
series: "1. Main Feed"
image: https://gmgauthier.us-east-1.linodeobjects.com/podcast/img/1295493-1552858652749-f9ba6e217d75c.jpg
enclosure: podcast_2020-02-15_119b0ae00c253dcd57b1e52f89879a9c.m4a
draft: false
---

View File

@ -3,6 +3,7 @@ title: "Terrorism, Power, and the Example of Christ"
date: 2019-03-31T23:49:22Z
series: "1. Main Feed"
image: https://gmgauthier.us-east-1.linodeobjects.com/podcast/img/1295493-1554023963100-371fceee072eb.jpg
enclosure: podcast_2020-02-15_ec2e429cc1ec06e965e509426bb3d836.m4a
draft: false
---

View File

@ -3,6 +3,7 @@ title: "The First Question: Is There a God?"
date: 2020-02-21T23:23:34Z
series: "1. Main Feed"
image: https://gmgauthier.us-east-1.linodeobjects.com/podcast/img/1295493-1582324187131-b1ae37a7ec12d.jpg
enclosure: podcast_2020-02-21_3714fa981ba37d0f6f8a2478612bd2c6.m4a
draft: false
---

View File

@ -3,6 +3,7 @@ title: "The Struggle Between Public and Private"
date: 2019-06-09T23:42:44Z
series: "1. Main Feed"
image: https://gmgauthier.us-east-1.linodeobjects.com/podcast/img/1295493-1560114663356-3cd272cfb7e3f.jpg
enclosure: podcast_2020-02-17_c2676aeb7b7eb0e7b4993fdc00899ef0.m4a
draft: false
---

View File

@ -3,10 +3,12 @@ title: "Addendum - The Music of the Consolation"
date: 2020-06-28T21:59:50Z
series: "The Consolation of Philosophy"
image: https://gmgauthier.us-east-1.linodeobjects.com/podcast/img/1295493-1592122305965-06e171d009893.jpg
enclosure: podcast_2020-06-14_0842428b7dcbaf7342407b2f62e04fd5.m4a
draft: true
---
{{< audio "https://gmgauthier.us-east-1.linodeobjects.com/podcast/audio/podcast_2020-06-14_0842428b7dcbaf7342407b2f62e04fd5.m4a" >}}
<p>This week is a musical hiatus from reading and analysis, because I have been working on my exams. Next week, normal programming will resume. But please enjoy this brief exploration of the medieval music of The Consolation. &nbsp;</p>
<p>NOTE: I did not do these interviews. They were done by Cambridge University, in an effort to promote the album created by the project discussed in the interviews. If you'd like to know more about the project, please visit their website: <a href="https://boethius.mus.cam.ac.uk/">https://boethius.mus.cam.ac.uk/</a>. If you'd like to purchase the album they created, you can find it on Amazon (<a href="https://www.amazon.co.uk/Boethius-Songs-Consolation-Sequentia/dp/B07D9CZPR2">link provided here</a>).</p>
{{< audio "https://gmgauthier.us-east-1.linodeobjects.com/podcast/audio/podcast_2020-06-14_0842428b7dcbaf7342407b2f62e04fd5.m4a" >}}

View File

@ -3,6 +3,7 @@ title: "Book 1 Chapter 1 & 2: Introduction to Boethius and His Plight"
date: 2020-04-04T23:00:40Z
series: "The Consolation of Philosophy"
image: https://gmgauthier.us-east-1.linodeobjects.com/podcast/img/1295493-1586043469347-8d8102657b504.jpg
enclosure: podcast_2020-04-04_boethius-book-1-chapter-1-and-2.mp3
draft: false
---

View File

@ -3,6 +3,7 @@ title: "Book 1 Chapter 3: Boethius and the Tradition of Philosophy"
date: 2020-04-19T22:55:47Z
series: "The Consolation of Philosophy"
image: https://gmgauthier.us-east-1.linodeobjects.com/podcast/img/1295493-1587335961846-8f4b330e77c03.jpg
enclosure: podcast_2020-04-19_boethius-book-1-chapter-3.mp3
draft: false
---

View File

@ -3,6 +3,7 @@ title: "Book 1 Chapter 4: Boethius Lays Out His Charges"
date: 2020-04-26T22:52:18Z
series: "The Consolation of Philosophy"
image: https://gmgauthier.us-east-1.linodeobjects.com/podcast/img/1295493-1587570880129-19c5232f081e9.jpg
enclosure: podcast_2020-05-02_boethius-book-1-chapter-4.mp3
draft: false
---

View File

@ -3,6 +3,7 @@ title: "Book 1 Chapter 5: Boethius Makes His Final Lament"
date: 2020-05-03T22:48:11Z
series: "The Consolation of Philosophy"
image: https://gmgauthier.us-east-1.linodeobjects.com/podcast/img/1295493-1587570352660-3aa1c96535f23.jpg
enclosure: podcast_2020-05-02_boethius-book-1-chapter-5.mp3
draft: false
---

View File

@ -3,6 +3,7 @@ title: "Book 1 Chapter 6 & 7: Philosophy Makes Her Diagnosis"
date: 2020-05-10T22:44:46Z
series: "The Consolation of Philosophy"
image: https://gmgauthier.us-east-1.linodeobjects.com/podcast/img/1295493-1587569868109-ec66ce096b9e8.jpg
enclosure: podcast_2020-05-02_boethius-book-1-chapter-6-and-7.mp3
draft: false
---

View File

@ -3,6 +3,7 @@ title: "Book 2 Chapter 1: The Foolishness of Fortune Hunters"
date: 2020-05-17T22:41:00Z
series: "The Consolation of Philosophy"
image: https://gmgauthier.us-east-1.linodeobjects.com/podcast/img/1295493-1588438337690-919d8af974b2f.jpg
enclosure: podcast_2020-05-03_boethius-book-2-chapter-1.mp3
draft: false
---

View File

@ -3,6 +3,7 @@ title: "Book 2 Chapter 2: The Inevitability of Fortune"
date: 2020-05-24T22:35:57Z
series: "The Consolation of Philosophy"
image: https://gmgauthier.us-east-1.linodeobjects.com/podcast/img/1295493-1589116517126-ac61f0af7a2a8.jpg
enclosure: podcast_2020-05-10_boethius-book-2-chapter-2.mp3
draft: false
---

View File

@ -3,6 +3,7 @@ title: "Book 2 Chapter 3: The Consequences of Fortune"
date: 2020-05-31T22:32:10Z
series: "The Consolation of Philosophy"
image: https://gmgauthier.us-east-1.linodeobjects.com/podcast/img/1295493-1589835676362-098d93767b2b7.jpg
enclosure: podcast_2020-05-18_boethius-book-2-chapter-3.mp3
draft: false
---

View File

@ -3,6 +3,7 @@ title: "Book 2 Chapter 4: Happiness From Virtue"
date: 2020-06-07T22:27:31Z
series: "The Consolation of Philosophy"
image: https://gmgauthier.us-east-1.linodeobjects.com/podcast/img/1295493-1590254569126-df1f558687d6f.jpg
enclosure: podcast_2020-05-24_boethius-book-2-chapter-4.mp3
draft: false
---

View File

@ -3,6 +3,7 @@ title: "Book 2 Chapter 5: The Golden Age"
date: 2020-06-14T22:22:28Z
series: "The Consolation of Philosophy"
image: https://gmgauthier.us-east-1.linodeobjects.com/podcast/img/1295493-1590956117600-5c710a6bc0fe7.jpg
enclosure: podcast_2020-05-31_boethius-book-2-chapter-5.mp3
draft: false
---
{{< audio "https://gmgauthier.us-east-1.linodeobjects.com/podcast/audio/podcast_2020-05-31_boethius-book-2-chapter-5.mp3" >}}

View File

@ -3,6 +3,7 @@ title: "Book 2 Chapter 6: The Powerful and the Rational"
date: 2020-06-21T22:07:44Z
series: "The Consolation of Philosophy"
image: https://gmgauthier.us-east-1.linodeobjects.com/podcast/img/1295493-1591296667514-3474949fb7659.jpg
enclosure: podcast_2020-06-07_boethius-book-2-chapter-6.mp3
draft: false
---

View File

@ -3,6 +3,7 @@ title: "Book 2 Chapter 7: The Lure of Fame"
date: 2020-07-05T21:46:06Z
series: "The Consolation of Philosophy"
image: https://gmgauthier.us-east-1.linodeobjects.com/podcast/img/1295493-1592550902432-f9c99af21bbc9.jpg
enclosure: podcast_2020-06-19_boethius-book-2-chapter-7.mp3
draft: false
---

View File

@ -3,6 +3,7 @@ title: "Plato, Parmenides, and the Theory of Forms"
date: 2020-10-06T21:12:55Z
series: "Plato 101"
image: https://gmgauthier.us-east-1.linodeobjects.com/podcast/img/1295493-1602021574273-4e224039c4235.jpg
enclosure: podcast_2020-10-06_867b86fbd34ba9bd87dd8d13376bd27b.m4a
draft: false
---

View File

@ -3,6 +3,7 @@ title: "The Allegory of the Cave: What It Is, and What It Means"
date: 2019-03-03T23:56:43Z
series: "1. Main Feed"
image: https://gmgauthier.us-east-1.linodeobjects.com/podcast/img/1295493-1585600222453-c49dc61d34e3.jpg
enclosure: podcast_2020-02-14_ddc9c314bfb1765b223a935cf80471a7.m4a
draft: false
---

View File

@ -18,7 +18,7 @@
<image>
<url>{{ .Permalink }}img/avatar.png</url>
<title>Greg Gauthier</title>
<link>https://gmgauthier.com</link>
<link>{{ .Permalink }}</link>
<width>32</width>
<height>32</height>
</image>
@ -40,6 +40,13 @@
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
<guid>{{ .Permalink }}</guid>
{{ if isset .Params "image" }}
{{ with .Params.image }}
<enclosure url="https://gmgauthier.com{{ . }}" type="image/jpg"/>
{{ end }}
{{ end }}
<description>
{{`<![CDATA[ ` | safeHTML }}
{{ if isset .Params "image" }}<p><img src="https://gmgauthier.com{{ with .Params.image }}{{.}}{{ end }}"/></p>{{end}}

59
layouts/post/rss.xml Normal file
View File

@ -0,0 +1,59 @@
{{- $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 -}}
{{- printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
<link>{{ .Permalink }}</link>
<image>
<url>{{ .Permalink }}img/avatar.png</url>
<title>Greg Gauthier</title>
<link>{{ .Permalink }}</link>
<width>32</width>
<height>32</height>
</image>
<image>{{ .Permalink }}img/avatar.png</image>
<description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}</description>
<generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
<language>{{.}}</language>{{end}}{{ with .Site.Author.email }}
<managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Author.email }}
<webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}
<copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
{{- with .OutputFormats.Get "RSS" -}}
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
{{- end -}}
{{ range $pages }}
<item>
<title>{{ .Title }}</title>
<link>{{ .Permalink }}</link>
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
<guid>{{ .Permalink }}</guid>
{{ if isset .Params "image" }}
{{ with .Params.image }}
<enclosure url="https://gmgauthier.com{{ . }}" type="image/jpg"/>
{{ end }}
{{ end }}
<description>
{{`<![CDATA[ ` | safeHTML }}
{{ if isset .Params "image" }}<p><img src="https://gmgauthier.com{{ with .Params.image }}{{.}}{{ end }}"/></p>{{end}}
{{ .Summary | safeHTML }}
]]>
</description>
</item>
{{ end }}
</channel>
</rss>

View File

@ -32,7 +32,13 @@
<category>{{ .Params.series }}</category>
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
<link>{{ .Permalink }}</link>
<guid>{{ .Permalink }}</guid>
{{ if isset .Params "enclosure" }}
{{ with .Params.enclosure }}
<enclosure url="https://gmgauthier.us-east-1.linodeobjects.com/podcast/audio/{{ . }}" type="audio/mpeg"/>
{{ end }}
{{ end }}
<description>
{{`<![CDATA[ ` | safeHTML }}
{{ if isset .Params "image" }}<p><img src="https://gmgauthier.com{{ with .Params.image }}{{.}}{{ end }}"/></p>{{end}}