diff options
| author | XhmikosR <[email protected]> | 2020-10-22 09:38:15 +0300 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-10-22 09:38:15 +0300 |
| commit | 5a3f273b60f5b8a3207bc5b39684d36543e58c5a (patch) | |
| tree | fd96144e6d3e7c9d0a684e39a09b874e24d22a5b /site | |
| parent | afc0e83ecc00e748a617861be3318522069bd3eb (diff) | |
| download | bootstrap-5a3f273b60f5b8a3207bc5b39684d36543e58c5a.tar.xz bootstrap-5a3f273b60f5b8a3207bc5b39684d36543e58c5a.zip | |
Move `href` attribute first (#31835)
Diffstat (limited to 'site')
| -rw-r--r-- | site/content/docs/5.0/getting-started/download.md | 2 | ||||
| -rw-r--r-- | site/content/docs/5.0/getting-started/introduction.md | 4 | ||||
| -rw-r--r-- | site/layouts/partials/home/masthead-followup.html | 2 | ||||
| -rw-r--r-- | site/layouts/partials/stylesheet.html | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/site/content/docs/5.0/getting-started/download.md b/site/content/docs/5.0/getting-started/download.md index 5917997df..1b62d9835 100644 --- a/site/content/docs/5.0/getting-started/download.md +++ b/site/content/docs/5.0/getting-started/download.md @@ -39,7 +39,7 @@ If you want to download and examine our [examples]({{< docsref "/examples" >}}), Skip the download with [jsDelivr](https://www.jsdelivr.com/) to deliver cached version of Bootstrap's compiled CSS and JS to your project. ```html -<link rel="stylesheet" href="{{< param "cdn.css" >}}" integrity="{{< param "cdn.css_hash" >}}" crossorigin="anonymous"> +<link href="{{< param "cdn.css" >}}" rel="stylesheet" integrity="{{< param "cdn.css_hash" >}}" crossorigin="anonymous"> <script src="{{< param "cdn.js_bundle" >}}" integrity="{{< param "cdn.js_bundle_hash" >}}" crossorigin="anonymous"></script> ``` diff --git a/site/content/docs/5.0/getting-started/introduction.md b/site/content/docs/5.0/getting-started/introduction.md index 1a2c84b9a..2415c900a 100644 --- a/site/content/docs/5.0/getting-started/introduction.md +++ b/site/content/docs/5.0/getting-started/introduction.md @@ -19,7 +19,7 @@ Looking to quickly add Bootstrap to your project? Use jsDelivr, a free open sour Copy-paste the stylesheet `<link>` into your `<head>` before all other stylesheets to load our CSS. ```html -<link rel="stylesheet" href="{{< param "cdn.css" >}}" integrity="{{< param "cdn.css_hash" >}}" crossorigin="anonymous"> +<link href="{{< param "cdn.css" >}}" rel="stylesheet" integrity="{{< param "cdn.css_hash" >}}" crossorigin="anonymous"> ``` ### JS @@ -66,7 +66,7 @@ Be sure to have your pages set up with the latest design and development standar <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- Bootstrap CSS --> - <link rel="stylesheet" href="{{< param "cdn.css" >}}" integrity="{{< param "cdn.css_hash" >}}" crossorigin="anonymous"> + <link href="{{< param "cdn.css" >}}" rel="stylesheet" integrity="{{< param "cdn.css_hash" >}}" crossorigin="anonymous"> <title>Hello, world!</title> </head> diff --git a/site/layouts/partials/home/masthead-followup.html b/site/layouts/partials/home/masthead-followup.html index 0d70afa11..24defc0fd 100644 --- a/site/layouts/partials/home/masthead-followup.html +++ b/site/layouts/partials/home/masthead-followup.html @@ -33,7 +33,7 @@ </div> <div class="col-md-7 pl-md-5"> {{ highlight (printf (`<!-- CSS only --> -<link rel="stylesheet" href="%s" integrity=%q crossorigin="anonymous">`) .Site.Params.cdn.css (.Site.Params.cdn.css_hash | safeHTMLAttr)) "html" "" }} +<link href="%s" rel="stylesheet" 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" "" }} </div> diff --git a/site/layouts/partials/stylesheet.html b/site/layouts/partials/stylesheet.html index 479c5e408..ee9c7c54c 100644 --- a/site/layouts/partials/stylesheet.html +++ b/site/layouts/partials/stylesheet.html @@ -16,5 +16,5 @@ {{- $style := resources.Get "scss/docs.scss" | toCSS $sassOptions | postCSS $postcssOptions }} -<link rel="stylesheet" href="{{ $style.Permalink | relURL }}"> +<link href="{{ $style.Permalink | relURL }}" rel="stylesheet"> {{- end }} |
