Revert v5.getbootstrap.com changes
This commit is contained in:
parent
8dc85c657e
commit
bc4272531b
6 changed files with 13 additions and 11 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
v5.getbootstrap.com
|
||||
getbootstrap.com
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue