| <link rel="preload" href="/webfonts/fa-solid-900.woff2" as="font" type="font/woff2" crossorigin="anonymous"> |
| <link rel="preload" href="/webfonts/fa-brands-400.woff2" as="font" type="font/woff2" crossorigin="anonymous"> |
| {{ $scssMain := "scss/main.scss"}} |
| {{ if .Site.IsServer }} |
| {{/* Note the missing postCSS. This makes it snappier to develop in Chrome, but makes it look sub-optimal in other browsers. */}} |
| {{ $css := resources.Get $scssMain | toCSS (dict "enableSourceMap" true) }} |
| <link href="{{ $css.RelPermalink }}" rel="stylesheet"> |
| {{ else }} |
| {{ $css := resources.Get $scssMain | toCSS (dict "enableSourceMap" false) | postCSS | minify | fingerprint }} |
| <link rel="preload" href="{{ $css.RelPermalink }}" as="style"> |
| <link href="{{ $css.RelPermalink }}" rel="stylesheet" integrity="{{ $css.Data.integrity }}"> |
| {{ end }} |
| {{ if and (.Site.Params.offlineSearch) (not .Site.Params.gcs_engine_id) }} |
| <link href="/css/offline-search.css" rel="stylesheet"> |
| {{ end }} |
| {{ if .Site.Params.algolia_docsearch }} |
| <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" /> |
| {{ end }} |