humans.txt with Hugo
Published:
, Updated:
Talks about:
<a class="post-tag post-tag-hugo" href="/tags/hugo">hugo</a>, and <a class="post-tag post-tag-humans.txt" href="/tags/humans.txt">humans.txt</a>
To publish a humans.txt document with your Hugo site, configure a media type in your config.toml
:
[mediaTypes."text/plain"]
suffixes = ["txt"]
[outputFormats.Humans]
name = "Humans"
mediaType = "text/plain"
baseName = "humans"
isPlainText = true
rel = "alternate"
isHTML = false
noUgly = true
permalinkable = false
Create a new layout in _default/home.humans.txt
with the following content:
/* TEAM */
{{ range $.Site.Data.contributors }}
{{ .title }}: {{ .first_name }} {{ .last_name }}
Site: {{ .website }}
{{ end }}