Migrating scss to Hugo pipes
This commit is contained in:
parent
afc0e0f45b
commit
ce4dba3341
40 changed files with 18 additions and 840 deletions
|
@ -1,10 +1,19 @@
|
|||
{{ partial "header/styles-highlight.html" . }}
|
||||
<link rel="stylesheet" href="{{ "css/hyde-hyde.css" | relURL }}">
|
||||
<link rel="stylesheet" href="{{ "css/print.css" | relURL }}" media="print">
|
||||
|
||||
{{ $options := (dict "outputStyle" "compressed" "enableSourceMap" true) }}
|
||||
|
||||
{{ $style := resources.Get "scss/hyde-hyde.scss" | toCSS $options | fingerprint }}
|
||||
<link rel="stylesheet" href="{{ $style.Permalink }}" integrity="{{ $style.Data.Integrity }}">
|
||||
|
||||
{{ $printStyle := resources.Get "scss/print.scss" | toCSS $options | fingerprint }}
|
||||
<link rel="stylesheet" href="{{ $printStyle.Permalink }}" integrity="{{ $printStyle.Data.Integrity }}" media="print">
|
||||
|
||||
{{ with .Site.Params.toc }}
|
||||
{{ if eq . "hugo" }}
|
||||
<link rel="stylesheet" href="{{ "css/hugo-toc.css" | relURL }}">
|
||||
{{ else if eq . "tocbot"}}
|
||||
<link rel="stylesheet" href="{{ "css/tocbot.css" | relURL }}">
|
||||
{{ end }}
|
||||
{{ if eq . "hugo" }}
|
||||
{{ $hugoToc := resources.Get "scss/hugo-toc.scss" | toCSS $options | fingerprint }}
|
||||
<link rel="stylesheet" href="{{ $hugoToc.Permalink }}" integrity="{{ $hugoToc.Data.Integrity }}">
|
||||
{{ else if eq . "tocbot"}}
|
||||
{{ $tocbot := resources.Get "scss/tocbot.scss" | toCSS $options | fingerprint }}
|
||||
<link rel="stylesheet" href="{{ $tocbot.Permalink }}" integrity="{{ $tocbot.Data.Integrity }}">
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue