From e64bd6918638f0be76a95bea1c55e754793cef74 Mon Sep 17 00:00:00 2001 From: Christian Engel Date: Thu, 25 Aug 2022 09:32:34 +0200 Subject: [PATCH] Remove unused seo related keywords --- README.md | 1 - exampleSite/config.toml | 1 - layouts/partials/head.html | 25 ------------------------- 3 files changed, 27 deletions(-) diff --git a/README.md b/README.md index b64b953..6ea41e1 100644 --- a/README.md +++ b/README.md @@ -98,7 +98,6 @@ enableEmoji = true [Params] name = "chringel" description = "A privacy focused theme for Hugo" - keywords = ['some', 'key', 'words'] github_user = "chringel21" github_repo = "https://github.com/chringel21/chringel-hugo-theme" diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 2f918bd..2ebadc8 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -17,7 +17,6 @@ CanonifyURLs = true [Params] name = "chringel" description = "A privacy focused theme for Hugo" - keywords = ['some', 'key', 'words'] github_user = "chringel21" github_repo = "https://github.com/chringel21/chringel-hugo-theme" diff --git a/layouts/partials/head.html b/layouts/partials/head.html index f7915b8..9bf6277 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -22,31 +22,6 @@ content="{{ .Site.Params.Description | safeHTML }}" /> {{- end -}} - {{- if .Keywords -}} - {{ $length := len .Keywords | add -1 -}} - - {{- else if .Params.Tags -}} - {{ $length := len .Params.Tags | add -1 -}} - - {{ else if .Site.Params.keywords }} - {{ $length := len .Site.Params.keywords | add -1 -}} - - {{- end -}} {{- if .Params.Author -}} {{ end -}}