summaryrefslogtreecommitdiffstats
path: root/layouts/partials
diff options
context:
space:
mode:
authorSerghei Iakovlev <egrep@protonmail.ch>2022-05-14 11:28:47 +0200
committerSerghei Iakovlev <egrep@protonmail.ch>2022-05-14 11:28:47 +0200
commit5344a15889ee292cd0082bae63f847d7d9a27b84 (patch)
tree44aa8b0fb14f1e914610c26a1a37bd5d3f4b0b22 /layouts/partials
parent3858a4289a8a0e3f301975e3071fc2efb82334a0 (diff)
downloadgohugo-theme-ed-5344a15889ee292cd0082bae63f847d7d9a27b84.tar.gz
Add humans.txt support
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/author.html1
-rw-r--r--layouts/partials/head.html1
-rw-r--r--layouts/partials/team-member.html5
3 files changed, 7 insertions, 0 deletions
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 @@
<meta name="viewport" content="width=device-width,initial-scale=1.0,shrink-to-fit=no">
<link rel="canonical" href="{{ .Permalink }}">
+ <link type="text/plain" rel="author" href="{{ "humans.txt" | absURL }}">
<title>{{ block "title" . }}{{ if .IsHome }}{{ site.Title }}{{ else }}{{ with .Params.Title }}{{ . }} - {{ end }}{{ site.Title }}{{ end }}{{ end }}</title>
<meta name="description" content="{{ $description }}">
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 }}