summaryrefslogtreecommitdiffstats
path: root/layouts/_default/home.humanstxt.txt
blob: 98b1c79c6c425ce5a2dfe254e32c2ae33dbae35a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{{- $authorName := "" }}
{{- $authorEmail := "" }}
{{- $authorGithub := "" }}
{{- $authorTwitter := "" }}
{{- $authorLocation := "" }}
{{- with site.Params.author }}
    {{- if reflect.IsMap . }}
        {{- with .email }}
            {{- $authorEmail = . }}
        {{- end -}}
        {{- with .name }}
            {{- $authorName = . }}
        {{- end }}
        {{- with .github }}
            {{- $authorGithub = . }}
        {{- end }}
        {{- with .twitter }}
            {{- $authorTwitter = . }}
        {{- end }}
        {{- with .location }}
            {{- $authorLocation = . }}
        {{- end }}
    {{- else }}
        {{- $authorName  = . }}
    {{- end }}
{{- end }}

{{- with $authorName }}
    /* TEAM */

    Author: {{ . }}
{{- with $authorEmail }}{{ printf "\n    Contact: %s" . }}{{ end }}
{{- with $authorGithub }}{{ printf "\n    GitHub: @%s" . }}{{ end }}
{{- with $authorTwitter }}{{ printf "\n    Twitter: @%s" . }}{{ end }}
{{- with $authorLocation }}{{ printf "\n    From: %s" . }}{{ end }}
{{- end }}

    /* SITE */

    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
    Components: Hugo, Ed Theme, Lunr.js
    Hugo version: {{ site.Hugo.Version }}