]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
docs: fix path to assets. (#27696)
authorXhmikosR <xhmikosr@gmail.com>
Wed, 21 Nov 2018 13:11:31 +0000 (15:11 +0200)
committerGitHub <noreply@github.com>
Wed, 21 Nov 2018 13:11:31 +0000 (15:11 +0200)
site/_includes/scripts.html
site/_layouts/examples.html
site/docs/4.1/utilities/image-replacement.md

index 3c2e7fbbc7ad8760afa7c0956265277842867823..79b400bbe23eb7428cf3488239e5a138a2045340 100644 (file)
@@ -1,5 +1,5 @@
 <script src="{{ site.cdn.jquery }}" integrity="{{ site.cdn.jquery_hash }}" crossorigin="anonymous"></script>
-<script>window.jQuery || document.write('<script src="{{ site.baseurl }}/assets/js/vendor/jquery-slim.min.js"><\/script>')</script>
+<script>window.jQuery || document.write('<script src="{{ site.baseurl }}/docs/{{ site.docs_version }}/assets/js/vendor/jquery-slim.min.js"><\/script>')</script>
 
 {%- if jekyll.environment == "production" -%}
   <script src="{{ site.baseurl }}/docs/{{ site.docs_version }}/dist/js/bootstrap.bundle.min.js" integrity="{{ site.cdn.js_bundle_hash }}" crossorigin="anonymous"></script>
index bbf9e69ff530a9d565fe39c3838f8ff13b0d50a5..28aa0736c5fca5c1557c0dcade60d407fed02711 100644 (file)
@@ -33,7 +33,7 @@
 
     {%- if page.include_js != false -%}
       <script src="{{ site.cdn.jquery }}" integrity="{{ site.cdn.jquery_hash }}" crossorigin="anonymous"></script>
-      <script>window.jQuery || document.write('<script src="{{ site.baseurl }}/assets/js/vendor/jquery-slim.min.js"><\/script>')</script>
+      <script>window.jQuery || document.write('<script src="{{ site.baseurl }}/docs/{{ site.docs_version }}/assets/js/vendor/jquery-slim.min.js"><\/script>')</script>
 
       {%- if jekyll.environment == "production" -%}
         <script src="{{ site.baseurl }}/docs/{{ site.docs_version }}/dist/js/bootstrap.bundle.min.js" integrity="{{ site.cdn.js_bundle_hash }}" crossorigin="anonymous"></script>
index 0d5a4d30ca75d1b326559295bafa2fd1e73e0f44..ab092d67f74921f9937137814cfdea48b53bac14 100644 (file)
@@ -8,6 +8,7 @@ toc: true
 
 {% capture callout %}
 ##### Warning
+
 The `text-hide()` class and mixin has been deprecated as of v4.1. It will be removed entirely in v5.
 {% endcapture %}
 {% include callout.html content=callout type="warning" %}
@@ -27,7 +28,10 @@ Utilize the `.text-hide` class or mixin to help replace an element's text conten
 
 Use the `.text-hide` class to maintain the accessibility and SEO benefits of heading tags, but want to utilize a `background-image` instead of text.
 
-{% capture example %}
-<h1 class="text-hide" style="background-image: url('/docs/{{ site.docs_version }}/assets/brand/bootstrap-solid.svg'); width: 50px; height: 50px;">Bootstrap</h1>
-{% endcapture %}
-{% include example.html content=example %}
+<div class="bd-example">
+  <h1 class="text-hide" style="background-image: url('{{ site.baseurl }}/docs/{{ site.docs_version }}/assets/brand/bootstrap-solid.svg'); width: 50px; height: 50px;">Bootstrap</h1>
+</div>
+
+{% highlight html %}
+<h1 class="text-hide" style="background-image: url('..');">Bootstrap</h1>
+{% endhighlight %}