From bc4272531b8aae5f5d3a005ec3fd101f570463d8 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Tue, 24 Nov 2020 21:05:11 +0200 Subject: Revert v5.getbootstrap.com changes --- site/assets/js/search.js | 2 +- site/data/docs-versions.yml | 2 +- site/layouts/robots.txt | 4 +++- site/static/CNAME | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) (limited to 'site') diff --git a/site/assets/js/search.js b/site/assets/js/search.js index e198eddb3..d88263d3f 100644 --- a/site/assets/js/search.js +++ b/site/assets/js/search.js @@ -29,7 +29,7 @@ }, transformData: function (hits) { return hits.map(function (hit) { - var liveUrl = 'https://v5.getbootstrap.com/' + var liveUrl = 'https://getbootstrap.com/' hit.url = window.location.origin.startsWith(liveUrl) ? // On production, return the result as is diff --git a/site/data/docs-versions.yml b/site/data/docs-versions.yml index c10c7c8fb..5ddde79a0 100644 --- a/site/data/docs-versions.yml +++ b/site/data/docs-versions.yml @@ -46,7 +46,7 @@ - v: "4.5" - group: v5.x - baseurl: "https://v5.getbootstrap.com/docs" + baseurl: "https://getbootstrap.com/docs" description: "Current major release. Last update was v5.0.0-beta1." versions: - v: "5.0" diff --git a/site/layouts/robots.txt b/site/layouts/robots.txt index 79dddec82..271b4f1b7 100644 --- a/site/layouts/robots.txt +++ b/site/layouts/robots.txt @@ -1,6 +1,8 @@ # www.robotstxt.org -{{- $allowCrawling := false -}} +{{- $isProduction := eq hugo.Environment "production" -}} +{{- $isNetlify := eq (getenv "NETLIFY") "true" -}} +{{- $allowCrawling := and (not $isNetlify) $isProduction -}} {{ if $allowCrawling }} # Allow crawling of all content diff --git a/site/static/CNAME b/site/static/CNAME index cc5f2f034..52c853392 100644 --- a/site/static/CNAME +++ b/site/static/CNAME @@ -1 +1 @@ -v5.getbootstrap.com +getbootstrap.com -- cgit v1.2.3