mirror of
https://github.com/docker/docs.git
synced 2026-03-27 22:38:54 +07:00
- layouts/partials/ → layouts/_partials/ - layouts/shortcodes/ → layouts/_shortcodes/ - layouts/_default/_markup/ → layouts/_markup/ - layouts/_default/*.html → layouts/*.html (flatten _default/) - layouts/index.html → layouts/home.html - layouts/index.*.json/txt → layouts/home.*.json/txt - layouts/_default/index.llms.txt → layouts/home.llms.txt - layouts/tag/ → layouts/tags/ (match /tags/ URL path)
23 lines
618 B
HTML
23 lines
618 B
HTML
{{ with (templates.Defer (dict "key" "global")) }}
|
|
{{ with resources.Get "css/style.css" }}
|
|
{{ $opts := dict
|
|
"minify" hugo.IsProduction
|
|
"inlineImports" true
|
|
}}
|
|
{{ with . | css.TailwindCSS $opts }}
|
|
{{ if hugo.IsProduction }}
|
|
{{ with . | fingerprint }}
|
|
<link
|
|
rel="stylesheet"
|
|
href="{{ .RelPermalink }}"
|
|
integrity="{{ .Data.Integrity }}"
|
|
crossorigin="anonymous"
|
|
/>
|
|
{{ end }}
|
|
{{ else }}
|
|
<link rel="stylesheet" href="{{ .RelPermalink }}" />
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ end }}
|