diff options
Diffstat (limited to 'themes/default/layouts/partials/base-head.html')
-rw-r--r-- | themes/default/layouts/partials/base-head.html | 13 |
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" . -}} |