diff --git a/blog/config.toml b/blog/config.toml index f72b151..09a5322 100644 --- a/blog/config.toml +++ b/blog/config.toml @@ -17,6 +17,7 @@ SectionPagesMenu = "main" github = "https://github.com/scubbo" linkedin = "https://www.linkedin.com/in/jack-jackson-14a47441/" mastodon = "https://fosstodon.org/@scubbo" + rss = "https://blog.scubbo.org/index.xml" custom_css = ['inlinespoiler.css'] show_reading_time = true page_source_base = "https://gitea.scubbo.org/scubbo/blogContent/src/branch/main/blog/" diff --git a/blog/content/posts/adding-rss.md b/blog/content/posts/adding-rss.md new file mode 100644 index 0000000..3b3a74b --- /dev/null +++ b/blog/content/posts/adding-rss.md @@ -0,0 +1,7 @@ +--- +title: "Adding RSS" +date: 2024-01-15T13:31:03-08:00 +tags: + - meta +--- +Inspired by [this article](https://rknight.me/blog/the-web-is-fantastic/), I've added (or attempted to?) an RSS feed to this blog. From [Hugo's docs](https://gohugo.io/templates/rss/) it _seems_ pretty simple, but please let me know if you run into any issues! diff --git a/blog/layouts/partials/head-additions.html b/blog/layouts/partials/head-additions.html index 35d482f..af7c20b 100644 --- a/blog/layouts/partials/head-additions.html +++ b/blog/layouts/partials/head-additions.html @@ -11,3 +11,10 @@ {{ if .Params.math }}{{ partial "helpers/katex.html" . }}{{ end }} + +{{ with .OutputFormats.Get "rss" -}} + {{ printf `` .Rel .MediaType.Type .Permalink site.Title | safeHTML }} +{{ end }} +