From 6bf88e4267ea00d997d21bb345a8b8305d739d6a Mon Sep 17 00:00:00 2001 From: Thies Lennart Alff Date: Mon, 8 Aug 2022 09:02:42 +0200 Subject: [PATCH] added robots.txt --- config.toml | 1 + layouts/robots.txt | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 layouts/robots.txt diff --git a/config.toml b/config.toml index 4eee5f4..697a6e6 100644 --- a/config.toml +++ b/config.toml @@ -8,6 +8,7 @@ pygmentsCodeFenes = true pygmentsCodeFencesGuessSyntax = true enableEmoji = true enableGitInfo = true +enableRobotsTXT = true [frontmatter] date = ['date', 'publishDate', 'lastmod'] diff --git a/layouts/robots.txt b/layouts/robots.txt new file mode 100644 index 0000000..ac68366 --- /dev/null +++ b/layouts/robots.txt @@ -0,0 +1,4 @@ +User-agent: * +{{ range .Pages }} +Disallow: {{ .RelPermalink }} +{{ end }} \ No newline at end of file