]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Starter template: use the CDN files with SRI hashes.
authorXhmikosR <xhmikosr@gmail.com>
Wed, 26 Sep 2018 06:04:02 +0000 (09:04 +0300)
committerXhmikosR <xhmikosr@gmail.com>
Thu, 18 Oct 2018 08:27:47 +0000 (11:27 +0300)
docs/_includes/getting-started/template.html

index d119634f16548d06ad37f9dce053489b68db47be..b5497cf060d9cf86a638b133bcf3b813782f5a7c 100644 (file)
@@ -15,7 +15,7 @@
     <title>Bootstrap 101 Template</title>
 
     <!-- Bootstrap -->
-    <link href="css/bootstrap.min.css" rel="stylesheet">
+    <link rel="stylesheet" href="{{ site.cdn.css }}" integrity="{{ site.cdn.css_hash }}" crossorigin="anonymous">
 
     <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
     <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
@@ -30,7 +30,7 @@
     <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
     <script src="https://code.jquery.com/jquery-1.12.4.min.js" integrity="sha384-nvAa0+6Qg9clwYCGGPpDQLVpLNn0fRaROjHqs13t4Ggj3Ez50XnGQqc/r8MhnRDZ" crossorigin="anonymous"></script>
     <!-- Include all compiled plugins (below), or include individual files as needed -->
-    <script src="js/bootstrap.min.js"></script>
+    <script src="{{ site.cdn.js }}" integrity="{{ site.cdn.js_hash }}" crossorigin="anonymous"></script>
   </body>
 </html>
 {% endhighlight %}