summaryrefslogtreecommitdiffstats
path: root/layouts/index.humanstxt.txt
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/index.humanstxt.txt
parent3858a4289a8a0e3f301975e3071fc2efb82334a0 (diff)
downloadgohugo-theme-ed-5344a15889ee292cd0082bae63f847d7d9a27b84.tar.gz
Add humans.txt support
Diffstat (limited to 'layouts/index.humanstxt.txt')
-rw-r--r--layouts/index.humanstxt.txt36
1 files changed, 36 insertions, 0 deletions
diff --git a/layouts/index.humanstxt.txt b/layouts/index.humanstxt.txt
new file mode 100644
index 0000000..d8aec86
--- /dev/null
+++ b/layouts/index.humanstxt.txt
@@ -0,0 +1,36 @@
+{{/* TODO: Translate me */}}
+CONGRATULATIONS, you found my humans.txt file!
+
+───────────────────────────────────────────────────────────────────────────────
+
+ /* TEAM */
+{{ if site.Author }}
+ {{- $author_type := (printf "%T" site.Author) }}
+ {{- if (or (eq $author_type "map[string]string") (eq $author_type "map[string]interface {}")) }}
+ {{- range $i, $author := site.Author }}
+ {{- $name_type := (printf "%T" $author) }}
+ {{- if (eq $name_type "maps.Params") }}
+ {{- $.Scratch.Set "name" ($author.Get "name") }}
+ {{- $.Scratch.Set "email" ($author.Get "email") }}
+ {{- $.Scratch.Set "github" ($author.Get "github") }}
+ {{- $.Scratch.Set "location" ($author.Get "location") }}
+ {{- partial "team-member.html" . -}}
+ {{ else }}
+ {{- $.Scratch.Set "name" site.Author.name }}
+ {{- $.Scratch.Set "email" site.Author.email }}
+ {{- $.Scratch.Set "github" site.Author.github }}
+ {{- $.Scratch.Set "location" site.Author.location }}
+ {{- partial "team-member.html" . }}
+ {{- break -}}
+ {{- end }}
+ {{- end }}
+ {{- end }}
+{{- end }}
+
+ /* SITE */
+
+ Last update: ???
+ Language: Russian, English
+ Doctype: HTML5
+ Standards: HTML5, CSS3, Open Graph protocol, Schema.org
+ Components: Hugo, jQuery, Ed Theme