From 90dc05df869dd740c55505e6ce2148e8efe5462c Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Sat, 28 May 2022 11:23:28 +0200 Subject: Do not index 404.html page --- CHANGELOG.md | 1 + layouts/robots.txt | 1 + 2 files changed, 2 insertions(+) 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 }} -- cgit v1.2.3