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