From 3eca067b1e9761f3180068206998b35c0b193556 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Sun, 15 May 2022 13:26:50 +0200 Subject: Try with break in range --- layouts/index.humanstxt.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'layouts/index.humanstxt.txt') diff --git a/layouts/index.humanstxt.txt b/layouts/index.humanstxt.txt index dd475bd..0b25434 100644 --- a/layouts/index.humanstxt.txt +++ b/layouts/index.humanstxt.txt @@ -9,6 +9,9 @@ CONGRATULATIONS, you found my humans.txt file! {{ range $i, $member := site.Author }} {{- if (eq (printf "%T" $member) "maps.Params") }} {{- partial "team-member.html" (dict "context" . "member" $member) -}} + {{- else if (eq (printf "%T" $member) "string") }} + {{- partial "team-member.html" (dict "context" . "member" site.Author) -}} + {{- break -}} {{- end }} {{- end }} {{- end }} @@ -16,7 +19,7 @@ CONGRATULATIONS, you found my humans.txt file! /* SITE */ - Last update: {{ now.Format "2006-01-02" }} + Last update: {{ now.Format "2006/01/02" }} Language: {{ range $i, $l := site.Languages }}{{ if $i }}, {{ end }}{{ .LanguageName }}{{ end }} Doctype: HTML5 Standards: HTML5, CSS3, Open Graph protocol, Schema.org -- cgit v1.2.3