refactor(codestyle): rewrite author meta tag generation

Signed-off-by: Patrick Kollitsch <patrick@davids-neighbour.com>
This commit is contained in:
Patrick Kollitsch 2025-02-09 15:54:05 +07:00
parent 33e51d6b58
commit 2bd232b5ec
No known key found for this signature in database
GPG Key ID: 01A2661D61A772CA
3 changed files with 5 additions and 9 deletions

View File

@ -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

View File

@ -1 +0,0 @@
{"Target":"ananke/css/main.min.css","MediaType":"text/css","Data":{}}