diff options
| author | Serghei Iakovlev <egrep@protonmail.ch> | 2022-05-28 11:23:28 +0200 |
|---|---|---|
| committer | Serghei Iakovlev <egrep@protonmail.ch> | 2022-05-28 11:24:54 +0200 |
| commit | 90dc05df869dd740c55505e6ce2148e8efe5462c (patch) | |
| tree | 9e498158140a7b06fe166ca0bea37b6dc0ca4b43 | |
| parent | b17ccbd2fa987395d42313a81b2227f5ec8d88ac (diff) | |
| download | gohugo-theme-ed-90dc05df869dd740c55505e6ce2148e8efe5462c.tar.gz | |
Do not index 404.html page
| -rw-r--r-- | CHANGELOG.md | 1 | ||||
| -rw-r--r-- | layouts/robots.txt | 1 |
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 }} |
