mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-12 01:14:22 +00:00
Convert docs to docsy
This commit is contained in:
11
site/themes/docsy/layouts/partials/head-css.html
Normal file
11
site/themes/docsy/layouts/partials/head-css.html
Normal file
@@ -0,0 +1,11 @@
|
||||
|
||||
{{ $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 }}
|
||||
Reference in New Issue
Block a user