From f31082dec8cbeb4b97782f44868aec07ce2964ed Mon Sep 17 00:00:00 2001 From: James Panther <4462786+jpanther@users.noreply.github.com> Date: Tue, 12 Sep 2023 11:37:25 +1000 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=B8=20Remove=20env=20check=20in=20robo?= =?UTF-8?q?ts.txt=20generation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes: #620 --- CHANGELOG.md | 1 + layouts/robots.txt | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bfe4d14e..35d537bf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ### Changed - ⚠️ Renamed the `params.rtl` language parameter to `languageDirection` as this is now supported by Hugo ([#583](https://github.com/jpanther/congo/issues/583)) +- Robots.txt file now allows all by default without concern for whether the environment is set to production ([#620](https://github.com/jpanther/congo/pull/620)) - Upgrade to Mermaid v10.4.0 ([#577](https://github.com/jpanther/congo/pull/577), [#582](https://github.com/jpanther/congo/pull/582), [#626](https://github.com/jpanther/congo/pull/626), [#638](https://github.com/jpanther/congo/pull/638)) - Upgrade to KaTeX v0.16.8 ([#590](https://github.com/jpanther/congo/pull/590)) - Upgrade to Tailwind v3.3.3 ([#602](https://github.com/jpanther/congo/pull/602)) diff --git a/layouts/robots.txt b/layouts/robots.txt index ad35c9df..4f4ca441 100644 --- a/layouts/robots.txt +++ b/layouts/robots.txt @@ -1,7 +1,3 @@ User-agent: * -{{- if hugo.IsProduction | or (eq .Site.Params.env "production") }} Allow: / -{{- else }} -Disallow: / -{{- end }} Sitemap: {{ "sitemap.xml" | absURL }}