hugolib, output: Fix robots.txt in multihost mode

Fixes #4193
This commit is contained in:
Bjørn Erik Pedersen
2018-01-25 10:36:53 +01:00
parent 1e27d05891
commit 4d912e2aad
2 changed files with 21 additions and 16 deletions

View File

@@ -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,