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