Skip to content

Commit

Permalink
Rremove separate JS includes from homepage for simplicity's sake, but…
Browse files Browse the repository at this point in the history
… include a link to doing it separately
  • Loading branch information
mdo authored and XhmikosR committed Sep 15, 2020
1 parent e3b7880 commit 5122429
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions site/layouts/partials/home/masthead-followup.html
Expand Up @@ -27,7 +27,7 @@ <h2 class="display-5 font-weight-normal">BootstrapCDN</h2>
When you only need to include Bootstrap’s compiled CSS or JS, you can use <a href="https://www.bootstrapcdn.com/">BootstrapCDN</a>.
</p>
<p>
See it in action with our simple <a href="/docs/{{ .Site.Params.docs_version }}/getting-started/introduction/#starter-template">starter template</a>, or <a href="/docs/{{ .Site.Params.docs_version }}/examples/">browse the examples</a> to jumpstart your next project.
See it in action with our simple <a href="/docs/{{ .Site.Params.docs_version }}/getting-started/introduction/#starter-template">starter template</a>, or <a href="/docs/{{ .Site.Params.docs_version }}/examples/">browse the examples</a> to jumpstart your next project. You can also choose to include Popper.js and our JS <a href="/docs/{{ .Site.Params.docs_version }}/getting-started/introduction/#separate">separately</a>.
</p>
<a class="btn btn-lg btn-outline-primary mb-3" href="/docs/{{ .Site.Params.docs_version }}/getting-started/introduction/">Explore the docs</a>
</div>
Expand All @@ -36,10 +36,6 @@ <h2 class="display-5 font-weight-normal">BootstrapCDN</h2>
<link rel="stylesheet" href="%s" integrity=%q crossorigin="anonymous">`) .Site.Params.cdn.css (.Site.Params.cdn.css_hash | safeHTMLAttr)) "html" "" }}
{{ highlight (printf (`<!-- JavaScript Bundle with Popper.js -->
<script src="%s" integrity=%q crossorigin="anonymous"></script>`) .Site.Params.cdn.js_bundle (.Site.Params.cdn.js_bundle_hash | safeHTMLAttr)) "html" "" }}
{{ highlight (printf (`<!-- Or Popper.js and our JavaScript file separately -->
<script src="%s" integrity=%q crossorigin="anonymous"></script>
<script src="%s" integrity=%q crossorigin="anonymous"></script>
`) .Site.Params.cdn.popper (.Site.Params.cdn.popper_hash | safeHTMLAttr) .Site.Params.cdn.js (.Site.Params.cdn.js_hash | safeHTMLAttr)) "html" "" }}
</div>
</section>

Expand Down

0 comments on commit 5122429

Please sign in to comment.