summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerghei Iakovlev <egrep@protonmail.ch>2022-05-16 08:54:03 +0200
committerSerghei Iakovlev <egrep@protonmail.ch>2022-05-16 08:54:03 +0200
commitfb614f750299e6adabca2aec4f6872792b21a6c5 (patch)
treedbc87092418a96f5c349a7a35880ab2aaff2af40
parent6122059d8454cf9bf3dc7f277a26ffc26dc5284d (diff)
downloadgohugo-theme-ed-fb614f750299e6adabca2aec4f6872792b21a6c5.tar.gz
Do not add link author twice
-rw-r--r--exampleSite/config.toml4
-rw-r--r--layouts/partials/head.html1
2 files changed, 4 insertions, 1 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index dc392bc..c8e2ec0 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -19,7 +19,11 @@ disableKinds = ['RSS']
[outputFormats.humanstxt]
mediaType = 'text/plain'
baseName = 'humans'
+ rel = 'author'
isPlainText = true
+ isHTML = false
+ noUgly = true
+ permalinkable = false
# Atom feed.
# For more see: https://validator.w3.org/feed/docs/atom.html#whatIsAtom
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 478410a..b0f1e58 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -5,7 +5,6 @@
<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="{{ (partial "description.html" . ) }}">