summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormjkwiatkowski <mati.rewa@gmail.com>2026-02-08 19:31:27 +0100
committermjkwiatkowski <mati.rewa@gmail.com>2026-02-08 19:31:27 +0100
commit0fed46f624d04d06d01209b53f4f0a914fc6f54e (patch)
tree54ff0213e588b57ed43da63972110f96821fb5ef
parentc2e19d54e1360113518db12b70fb3ed6a32d1a45 (diff)
fix: changed robots.txt
-rw-r--r--config.toml1
-rw-r--r--layouts/robots.txt7
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 }}