summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.md1
-rw-r--r--layouts/robots.txt1
2 files changed, 2 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index eff67d1..42e7d42 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Add fallback if main sections are not configured
- Reformat default 404 page
- Rework the "Latest Publications" section, add post date
+- Add 404 page to robots.txt file (to prevent search engines from indexing it)
## v0.1.0 - 2022-05-27
diff --git a/layouts/robots.txt b/layouts/robots.txt
index 53082b7..eb66085 100644
--- a/layouts/robots.txt
+++ b/layouts/robots.txt
@@ -3,6 +3,7 @@
User-agent: *
{{- if eq (getenv "HUGO_ENV") "production" | or (eq site.Params.env "production") }}
Allow: /
+Disallow: /404.html
Disallow: /thanks
Sitemap: {{ "/stemap.xml" | absURL }}