diff options
| -rw-r--r-- | config.toml | 1 | ||||
| -rw-r--r-- | layouts/robots.txt | 7 |
2 files changed, 4 insertions, 4 deletions
diff --git a/config.toml b/config.toml index 9163640..f7f778f 100644 --- a/config.toml +++ b/config.toml @@ -1,6 +1,7 @@ baseURL = 'https://mjkw.pl/' languageCode = 'en-us' title = 'mjkw' +enableRobotsTXT = true [permalinks] post = "/:year/:month/:day/:filename/" diff --git a/layouts/robots.txt b/layouts/robots.txt index 14b953c..634c39a 100644 --- a/layouts/robots.txt +++ b/layouts/robots.txt @@ -1,5 +1,4 @@ -# robots.txt User-agent: * -Disallow: -Disallow: /cgi-bin/ - +{{ range .Pages }} +Disallow: {{ .RelPermalink }} +{{ end }} |
