aboutsummaryrefslogtreecommitdiff
path: root/site
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2020-11-24 21:05:11 +0200
committerXhmikosR <[email protected]>2020-12-07 18:18:16 +0200
commitbc4272531b8aae5f5d3a005ec3fd101f570463d8 (patch)
tree50eec589b9893a92dc4b2b480d0887fc61f12123 /site
parent8dc85c657ee8353f76bb767737f489457132e29d (diff)
downloadbootstrap-bc4272531b8aae5f5d3a005ec3fd101f570463d8.tar.xz
bootstrap-bc4272531b8aae5f5d3a005ec3fd101f570463d8.zip
Revert v5.getbootstrap.com changes
Diffstat (limited to 'site')
-rw-r--r--site/assets/js/search.js2
-rw-r--r--site/data/docs-versions.yml2
-rw-r--r--site/layouts/robots.txt4
-rw-r--r--site/static/CNAME2
4 files changed, 6 insertions, 4 deletions
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