summaryrefslogtreecommitdiffhomepage
path: root/hugolib/site.go
diff options
context:
space:
mode:
Diffstat (limited to 'hugolib/site.go')
-rw-r--r--hugolib/site.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/hugolib/site.go b/hugolib/site.go
index 5507d7a78..ac65931d0 100644
--- a/hugolib/site.go
+++ b/hugolib/site.go
@@ -1209,8 +1209,10 @@ func (s *Site) render(ctx *siteRenderContext) (err error) {
return
}
- if err = s.renderRobotsTXT(); err != nil {
- return
+ if ctx.multihost {
+ if err = s.renderRobotsTXT(); err != nil {
+ return
+ }
}
if err = s.render404(); err != nil {