From 0cc0da256dfba4173eb222bd3431d50007f284d8 Mon Sep 17 00:00:00 2001 From: wgroeneveld Date: Thu, 19 Nov 2020 10:27:25 +0100 Subject: [PATCH] generate robots.txt --- config.toml | 2 +- layouts/robots.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 layouts/robots.txt diff --git a/config.toml b/config.toml index 82cbd3d..939d461 100644 --- a/config.toml +++ b/config.toml @@ -6,7 +6,7 @@ publishDir = "docs" enableEmoji = true # for .Lastmod to work with .GitInfo: --enableGitInfo https://gohugo.io/variables/git/ enableGitInfo = true - +enableRobotsTXT = true summaryLength = 20 [Author] diff --git a/layouts/robots.txt b/layouts/robots.txt new file mode 100644 index 0000000..7d329b1 --- /dev/null +++ b/layouts/robots.txt @@ -0,0 +1 @@ +User-agent: *