aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials/base-head.html
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2023-12-30 16:39:52 -0500
committertdro <tdro@noreply.example.com>2023-12-30 16:39:52 -0500
commitc3f5fba9a08339035b5a409e7acef144f76fa975 (patch)
treed12f39712e4d180f61450cca15a85589ad99e476 /themes/default/layouts/partials/base-head.html
parent937d0e35700c85c7d683dd33a7f542442d8ec11c (diff)
downloadcanory-c3f5fba9a08339035b5a409e7acef144f76fa975.tar.gz
canory-c3f5fba9a08339035b5a409e7acef144f76fa975.tar.bz2
canory-c3f5fba9a08339035b5a409e7acef144f76fa975.zip
config: Unify the manifests
Inline and use generic placeholder logo
Diffstat (limited to 'themes/default/layouts/partials/base-head.html')
-rw-r--r--themes/default/layouts/partials/base-head.html13
1 files changed, 7 insertions, 6 deletions
diff --git a/themes/default/layouts/partials/base-head.html b/themes/default/layouts/partials/base-head.html
index 0fbeb3a..a32b08d 100644
--- a/themes/default/layouts/partials/base-head.html
+++ b/themes/default/layouts/partials/base-head.html
@@ -1,7 +1,11 @@
{{- $noindex := "" -}}
+{{- $image := "" -}}
{{- $author := .Section -}}
-{{- $authors := partial "function-authors-data.html" . -}}
-{{- $image := print ("" | absURL) "/data/media/" $author "/" $author "-profile.png" -}}
+{{- $kind := in (slice "home" "taxonomy" "term") .Page.Kind -}}
+
+{{- if not $kind -}}
+ {{- $image = print ("" | absURL) "/data/media/" $author "/" $author "-profile.png" -}}
+{{- end -}}
{{- with or .Params.Feed .Params.Unlisted .Params.ExpiryDate -}}
{{- $noindex = "noindex,nofollow" -}}
@@ -9,7 +13,7 @@
<!-- HTML Meta Tags -->
<meta charset="utf-8" />
-<meta name="author" content="{{ $authors.name -}}" />
+<meta name="author" content="{{ or $author $.Site.Title -}}" />
<meta name="robots" content="{{ or $noindex .Site.Params.site.robots "index,follow" }}" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="keywords" content="{{- partial "base-title.html" . -}}" />
@@ -39,9 +43,6 @@
<meta name='base-url' content="{{ "" | absURL }}" />
<meta name='last-modified' content="{{ now.UTC.Format "Mon, 02 Jan 2006 15:04:05 GMT" }}" />
-<!-- Link Tags -->
-<link rel="home" href="{{ "" | absURL }}/{{ $authors.user }}/" />
-
<!-- Search Verification -->
{{- partial "base-search.html" . -}}