diff options
author | Caio Lente <7017340+clente@users.noreply.github.com> | 2024-04-08 15:28:46 -0300 |
---|---|---|
committer | Caio Lente <7017340+clente@users.noreply.github.com> | 2024-04-08 15:28:46 -0300 |
commit | 729a354f4cf3f44e7920cf56cfbba77037fa00b6 (patch) | |
tree | 5bd693f5f6d239b7a7d9aa816afce6a35c7d6588 | |
parent | 4a25d49a191d4bb52dd71a7c56f75ca798ff6d57 (diff) | |
download | hugo-bearcub-729a354f4cf3f44e7920cf56cfbba77037fa00b6.tar.gz hugo-bearcub-729a354f4cf3f44e7920cf56cfbba77037fa00b6.tar.bz2 |
Add author meta tag (by @ttybitnik)
-rw-r--r-- | layouts/partials/seo_tags.html | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/layouts/partials/seo_tags.html b/layouts/partials/seo_tags.html index 81e498f..6ab1422 100644 --- a/layouts/partials/seo_tags.html +++ b/layouts/partials/seo_tags.html @@ -1,6 +1,7 @@ <!-- Primary Meta Tags --> <meta name="title" content="{{ with .Title }}{{ . }}{{ else }}{{ .Site.Title }}{{ end }}" /> <meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}" /> +<meta name="author" content="{{ with .Params.author }}{{ . }}{{ end }}" /> <meta name="keywords" content="{{ if .IsPage}}{{ range $index, $tag := .Params.tags }}{{ $tag }},{{ end }}{{ else }}{{ range $plural, $terms := .Site.Taxonomies }}{{ range $term, $val := $terms }}{{ printf "%s," $term }}{{ end }}{{ end }}{{ end }}" /> <!-- Only generate social card if: --> |