Skip to content

Commit

Permalink
Remove unused seo related keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
chringel21 committed Aug 25, 2022
1 parent 3eab36d commit e64bd69
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 27 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion exampleSite/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
25 changes: 0 additions & 25 deletions layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,31 +22,6 @@
content="{{ .Site.Params.Description | safeHTML }}"
/>
{{- end -}}
{{- if .Keywords -}}
{{ $length := len .Keywords | add -1 -}}
<meta
name="keywords"
content="{{ range $index, $element := .Keywords }}
{{ $element | safeHTML }}{{ if ne $index $length }},{{ end }}
{{ end }}"
/>
{{- else if .Params.Tags -}}
{{ $length := len .Params.Tags | add -1 -}}
<meta
name="keywords"
content="{{ range $index, $element := .Params.Tags }}
{{ $element | safeHTML }}{{ if ne $index $length }},{{ end }}
{{ end }}"
/>
{{ else if .Site.Params.keywords }}
{{ $length := len .Site.Params.keywords | add -1 -}}
<meta
name="keywords"
content="{{ range $index, $element := .Site.Params.keywords }}
{{ $element | safeHTML }}{{ if ne $index $length }},{{ end }}
{{ end }}"
/>
{{- end -}}
{{- if .Params.Author -}}
<meta name="author" content="{{ .Params.Author }}" />
{{ end -}}
Expand Down

0 comments on commit e64bd69

Please sign in to comment.