diff options
author | amzrk2 | 2020-06-04 20:08:43 +0800 |
---|---|---|
committer | amzrk2 | 2020-06-04 20:08:43 +0800 |
commit | 914bf54c493b299268c293be33a8babf99b1cce2 (patch) | |
tree | c98ee9fbdb6f474579aa769a2a4b0b4c98fd21f1 /layouts/partials/head.html | |
parent | 102399b0f8273bc7bb8c3cd881304d1fc01ee2fe (diff) | |
download | hugo-theme-fuji-914bf54c493b299268c293be33a8babf99b1cce2.tar.gz hugo-theme-fuji-914bf54c493b299268c293be33a8babf99b1cce2.tar.bz2 hugo-theme-fuji-914bf54c493b299268c293be33a8babf99b1cce2.zip |
Custom scss variable support
Diffstat (limited to 'layouts/partials/head.html')
-rw-r--r-- | layouts/partials/head.html | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 289c067..2d7362c 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -36,8 +36,14 @@ {{ if .Site.Params.mainAssetsCDN }} <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/amzrk2/hugo-theme-fuji@2.0/dist/fuji.min.css" /> {{ else }} +{{ if .Site.Params.useHugoPipes }} +{{ $options := (dict "targetPath" "assets/css/fuji-custom.min.css" "outputStyle" "compressed") }} +{{ $style := resources.Get "scss/fuji.scss" | resources.ToCSS $options }} +<link rel="stylesheet" href="{{ $style.Permalink }}" /> +{{ else }} <link rel="stylesheet" href="{{ "/assets/css/fuji.min.css" | relURL }}" /> {{ end }} +{{ end }} {{ if .Params.playerURL }} <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/aplayer@1.10.1/dist/APlayer.min.css" /> {{ end }} |