mirror of
https://github.com/zopiya/blog.git
synced 2025-11-03 12:16:46 +08:00
Add CSS partial for combined styles and custom font settings
This commit is contained in:
28
layouts/partials/head/css.html
Normal file
28
layouts/partials/head/css.html
Normal file
@@ -0,0 +1,28 @@
|
||||
{{
|
||||
$CSS := slice
|
||||
(resources.Get "css/reset.css")
|
||||
(resources.Get "css/vars.css")
|
||||
(resources.Get "css/utils.css")
|
||||
(resources.Get "css/fonts.css")
|
||||
(resources.Get "css/lxgw/lxgwwenkaigbscreen.css")
|
||||
(resources.Get "css/lxgw/lxgwwenkaigbscreenr.css")
|
||||
(resources.Get "css/lxgw/lxgwwenkaiscreen.css")
|
||||
(resources.Get "css/lxgw/lxgwwenkaiscreenr.css")
|
||||
(resources.Get "css/main.css")
|
||||
(resources.Get "css/custom.css")
|
||||
(resources.Get "css/colors/default.css")
|
||||
}}
|
||||
|
||||
{{ with .Site.Params.colorPalette }}
|
||||
{{ $path := printf "css/colors/%s.css" . }}
|
||||
{{ $CSS = $CSS | append (resources.Get $path) }}
|
||||
{{ end }}
|
||||
|
||||
{{
|
||||
$combined := $CSS
|
||||
| resources.Concat "assets/combined.css"
|
||||
| minify
|
||||
| fingerprint
|
||||
}}
|
||||
|
||||
<link rel="stylesheet" href="{{ $combined.RelPermalink }}" media="all">
|
||||
Reference in New Issue
Block a user