From 5344a15889ee292cd0082bae63f847d7d9a27b84 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Sat, 14 May 2022 11:28:47 +0200 Subject: Add humans.txt support --- layouts/partials/author.html | 1 + layouts/partials/head.html | 1 + layouts/partials/team-member.html | 5 +++++ 3 files changed, 7 insertions(+) create mode 100644 layouts/partials/team-member.html (limited to 'layouts/partials') diff --git a/layouts/partials/author.html b/layouts/partials/author.html index 6de4feb..efb1dbd 100644 --- a/layouts/partials/author.html +++ b/layouts/partials/author.html @@ -22,6 +22,7 @@ {{- end }} {{- end }} {{- delimit ($.Scratch.GetSortedMapValues "names") ", " }} + {{- $.Scratch.Delete "names" -}} {{- end }} {{- end -}} {{- end -}} diff --git a/layouts/partials/head.html b/layouts/partials/head.html index da95aa5..abb4cbe 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -10,6 +10,7 @@ + {{ block "title" . }}{{ if .IsHome }}{{ site.Title }}{{ else }}{{ with .Params.Title }}{{ . }} - {{ end }}{{ site.Title }}{{ end }}{{ end }} diff --git a/layouts/partials/team-member.html b/layouts/partials/team-member.html new file mode 100644 index 0000000..917e97f --- /dev/null +++ b/layouts/partials/team-member.html @@ -0,0 +1,5 @@ + + Author: {{ .Name }} + Contact: {{ .Email }} + GitHub: {{ .Github }} + From: {{ .Location }} -- cgit v1.2.3