mirror of
https://github.com/theNewDynamic/gohugo-theme-ananke.git
synced 2025-06-07 16:42:45 +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">
|
||||
{{ end }}
|
||||
{{ with .Params.author | default .Site.Params.author }}
|
||||
<meta name="author" content = "
|
||||
{{- if reflect.IsSlice . -}}
|
||||
{{ delimit . ", " | plainify }}
|
||||
{{- else -}}
|
||||
{{ . | plainify }}
|
||||
{{- end -}}
|
||||
">
|
||||
{{- $author := . -}}
|
||||
{{- if reflect.IsSlice . -}}
|
||||
{{- $author = delimit . ", " | plainify -}}
|
||||
{{- end -}}
|
||||
<meta name="author" content="{{ $author }}">
|
||||
{{ end }}
|
||||
|
||||
{{ 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