summaryrefslogtreecommitdiffstats
path: root/layouts
diff options
context:
space:
mode:
authorSerghei Iakovlev <egrep@protonmail.ch>2022-05-15 13:26:50 +0200
committerSerghei Iakovlev <egrep@protonmail.ch>2022-05-15 13:26:50 +0200
commit3eca067b1e9761f3180068206998b35c0b193556 (patch)
tree4e97cd82b98e97768b60071d487bc9f9503058fc /layouts
parent3ba00d4b693f502ba3546103012f7b700286ff7d (diff)
downloadgohugo-theme-ed-3eca067b1e9761f3180068206998b35c0b193556.tar.gz
Try with break in range
Diffstat (limited to 'layouts')
-rw-r--r--layouts/index.humanstxt.txt5
-rw-r--r--layouts/partials/team-member.html8
2 files changed, 8 insertions, 5 deletions
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
diff --git a/layouts/partials/team-member.html b/layouts/partials/team-member.html
index f425f33..a5e6fe7 100644
--- a/layouts/partials/team-member.html
+++ b/layouts/partials/team-member.html
@@ -1,5 +1,5 @@
- Author: {{ .context.Name | default "-" }}
- Contact: {{ .context.Email | default "-" }}
- GitHub: {{ .context.GitHub | default "-" }}
- From: {{ .context.Location | default "-" }}
+ Author: {{ $.member.name | default "-" }}
+ Contact: {{ $.member.email | default "-" }}
+ GitHub: {{ $.member.github | default "-" }}
+ From: {{ $.member.location | default "-" }}