From 70a634b13100b36077fa21b5d634a3ea05fd59ce Mon Sep 17 00:00:00 2001 From: samsapti Date: Tue, 14 Jun 2022 15:15:48 +0200 Subject: [PATCH] Add a 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 75e8cc8..8445e3d 100644 --- a/config.toml +++ b/config.toml @@ -7,6 +7,7 @@ pygmentsStyle = "dracula" pygmentsCodeFences = true pygmentsCodeFencesGuessSyntax = true enableEmoji = true +enableRobotsTXT = true [taxonomies] series = "series" 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