commit 027ca18e74a629b7e5e214c5fac68ff6bae087c2
parent ef0cd5703d44899097f708fcba029686a212c452
Author: Oscar Benedito <oscar@oscarbenedito.com>
Date:   Fri, 14 Aug 2020 00:59:24 +0200

Feed links are now on the whole website

Also fixed description for taxonomy feeds.

Diffstat:
Mconfig.toml | 1-
Mlayouts/_default/list.html | 4+++-
Mlayouts/index.html | 1+
Mlayouts/partials/head-base.html | 1+
4 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/config.toml b/config.toml @@ -11,7 +11,6 @@ disableKinds = "taxonomyTerm" [params] domain = "oscarbenedito.com" - blog_title = "Personal blog" active_years = ["2020", "2019"] [taxonomies] diff --git a/layouts/_default/list.html b/layouts/_default/list.html @@ -1,5 +1,7 @@ {{ define "add-to-header" }} -<link rel="alternate" type="application/atom+xml" title="{{ .Site.Params.blog_title }}" href="{{ .RelPermalink }}index.xml"> +{{- if eq .Kind "taxonomy" }} +<link rel="alternate" type="application/atom+xml" title="{{ .Data.Singular | title }}: {{ .Title }} on Oscar's Blog" href="{{ .RelPermalink }}index.xml"> +{{ end }} {{ end }} {{ define "main" }} diff --git a/layouts/index.html b/layouts/index.html @@ -6,6 +6,7 @@ <meta name="author" content="{{ .Site.Author.name }}"> <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"> <title>Oscar Benedito</title> + <link rel="alternate" type="application/atom+xml" title="Oscar's Blog" href="/blog/index.xml"> {{- $favicon := resources.Get "img/favicon.min.svg" | fingerprint }} <link rel="icon" href="{{ $favicon.RelPermalink }}"> <link rel="shortcut icon" href="/favicon.ico"> diff --git a/layouts/partials/head-base.html b/layouts/partials/head-base.html @@ -6,3 +6,4 @@ <link rel="icon" href="{{ $favicon.RelPermalink }}"> <link rel="shortcut icon" href="/favicon.ico"> <title>{{ if .Params.headtitle }}{{ .Params.headtitle }} | {{ else if eq .Kind "taxonomy" }}{{ .Title }} | {{ else if not .IsHome }}{{ .Title }} | {{ end }}{{ .Site.Title }}</title> +<link rel="alternate" type="application/atom+xml" title="Oscar's Blog" href="/blog/index.xml">