mirror of
https://github.com/theNewDynamic/gohugo-theme-ananke.git
synced 2025-06-08 00:52:43 +00:00
refactor(codestyle): rewrite author meta tag generation
Signed-off-by: Patrick Kollitsch <patrick@davids-neighbour.com>
This commit is contained in:
parent
33e51d6b58
commit
2bd232b5ec
@ -16,13 +16,11 @@
|
|||||||
<meta name="robots" content="noindex, nofollow">
|
<meta name="robots" content="noindex, nofollow">
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ with .Params.author | default .Site.Params.author }}
|
{{ with .Params.author | default .Site.Params.author }}
|
||||||
<meta name="author" content = "
|
{{- $author := . -}}
|
||||||
{{- if reflect.IsSlice . -}}
|
{{- if reflect.IsSlice . -}}
|
||||||
{{ delimit . ", " | plainify }}
|
{{- $author = delimit . ", " | plainify -}}
|
||||||
{{- else -}}
|
{{- end -}}
|
||||||
{{ . | plainify }}
|
<meta name="author" content="{{ $author }}">
|
||||||
{{- end -}}
|
|
||||||
">
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ partial "site-style.html" . }}
|
{{ partial "site-style.html" . }}
|
||||||
|
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@
|
|||||||
{"Target":"ananke/css/main.min.css","MediaType":"text/css","Data":{}}
|
|
Loading…
x
Reference in New Issue
Block a user