diff options
| author | Serghei Iakovlev <egrep@protonmail.ch> | 2024-04-14 15:30:44 +0200 |
|---|---|---|
| committer | Serghei Iakovlev <egrep@protonmail.ch> | 2024-04-14 15:38:50 +0200 |
| commit | 23d77288040ca113dbc797aa2eaff6ba2a32f324 (patch) | |
| tree | c14a8417684dd54ea7425f7bc64d52d315973ad4 /layouts/_default/home.humanstxt.txt | |
| parent | 77b73fceb49bff397dab6badb7df8e821960fe2b (diff) | |
| download | gohugo-theme-ed-23d77288040ca113dbc797aa2eaff6ba2a32f324.tar.gz | |
Move site author configuration to params
Diffstat (limited to 'layouts/_default/home.humanstxt.txt')
| -rw-r--r-- | layouts/_default/home.humanstxt.txt | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/layouts/_default/home.humanstxt.txt b/layouts/_default/home.humanstxt.txt index 0d3efe9..23286fe 100644 --- a/layouts/_default/home.humanstxt.txt +++ b/layouts/_default/home.humanstxt.txt @@ -1,11 +1,12 @@ -{{- with site.Author.name }} +{{- $siteAuthor := partial "site-author.html" . -}} +{{- with $siteAuthor.name }} /* TEAM */ Author: {{ . }} -{{- with site.Author.email }}{{ printf "\n Contact: %s" . }}{{ end }} -{{- with site.Author.github }}{{ printf "\n GitHub: @%s" . }}{{ end }} -{{- with site.Author.twitter }}{{ printf "\n Twitter: @%s" . }}{{ end }} -{{- with site.Author.location }}{{ printf "\n From: %s" . }}{{ end }} +{{- with $siteAuthor.email }}{{ printf "\n Contact: %s" . }}{{ end }} +{{- with $siteAuthor.github }}{{ printf "\n GitHub: @%s" . }}{{ end }} +{{- with $siteAuthor.twitter }}{{ printf "\n Twitter: @%s" . }}{{ end }} +{{- with $siteAuthor.location }}{{ printf "\n From: %s" . }}{{ end }} {{- end }} /* SITE */ @@ -15,3 +16,4 @@ Doctype: HTML5 Standards: HTML5, CSS3, Open Graph protocol, Schema.org Components: Hugo, Ed Theme, Lunr.js + Hugo version: {{ site.Hugo.Version }} |
