From 4a82f9d859824a0562dbd89de8569891fa3c308e Mon Sep 17 00:00:00 2001 From: Ben Fiedler Date: Sat, 12 Dec 2020 22:56:12 +0100 Subject: [PATCH] Override RSS feed on homepage Point to /blog/index.xml because it is the only one that matters --- config.toml | 2 +- content/about/index.md | 1 - layouts/_default/baseof.html | 2 ++ layouts/_default/home.html | 1 + 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/config.toml b/config.toml index 9bb1e5e..d7105c0 100644 --- a/config.toml +++ b/config.toml @@ -11,7 +11,7 @@ pygmentsUseClasses = true blog = "/blog/:year/:month/:day/:filename" [outputs] - home = ["HTML", "RSS"] + home = ["HTML"] blog = ["HTML", "RSS"] taxonomies = ["HTML"] taxonomyTerms = ["HTML"] diff --git a/content/about/index.md b/content/about/index.md index 7048097..cbe922d 100644 --- a/content/about/index.md +++ b/content/about/index.md @@ -1,7 +1,6 @@ --- title: "About me" layout: "about" -date: 1970-01-01T00:00:00+00:00 --- I am a Master's student in [Computer Science](https://inf.ethz.ch) at [ETH diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index fefcadc..4b3be18 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -11,9 +11,11 @@ {{- $main := resources.Get "style.scss" | toCSS | minify | fingerprint }} + {{- block "rss" . -}} {{- with .OutputFormats.Get "rss" -}} {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} {{- end -}} + {{- end -}} diff --git a/layouts/_default/home.html b/layouts/_default/home.html index 810ff6a..f925505 100644 --- a/layouts/_default/home.html +++ b/layouts/_default/home.html @@ -1,4 +1,5 @@ {{ define "title" }}Ben Fiedler{{ end }} +{{ define "rss" }}{{ end }} {{ define "main" }}

Ben Fiedler

-- 2.30.1