Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/output
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-01-25 12:36:53 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-01-25 12:36:53 +0300
commit4d912e2aad39bfe8d76672cf53b01317792e02c5 (patch)
treef94a7106d3c31db330bd76750eb161c82edaf745 /output
parent1e27d0589118a114e49c032e4bd68b4798e44a5b (diff)
hugolib, output: Fix robots.txt in multihost mode
Fixes #4193
Diffstat (limited to 'output')
-rw-r--r--output/outputFormat.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/output/outputFormat.go b/output/outputFormat.go
index fbc9f20cc..0920e5736 100644
--- a/output/outputFormat.go
+++ b/output/outputFormat.go
@@ -125,6 +125,14 @@ var (
Rel: "alternate",
}
+ RobotsTxtFormat = Format{
+ Name: "ROBOTS",
+ MediaType: media.TextType,
+ BaseName: "robots",
+ IsPlainText: true,
+ Rel: "alternate",
+ }
+
RSSFormat = Format{
Name: "RSS",
MediaType: media.RSSType,