Skip to content

Commit

Permalink
add generated CSSs and change .Permalink to .RelPermalink to fix brok…
Browse files Browse the repository at this point in the history
…en demo #53
  • Loading branch information
htr3n committed Nov 9, 2018
1 parent bc0953e commit 369e151
Show file tree
Hide file tree
Showing 9 changed files with 926 additions and 4 deletions.
8 changes: 4 additions & 4 deletions layouts/partials/header/styles.html
Expand Up @@ -3,17 +3,17 @@
{{ $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 }}">
<link rel="stylesheet" href="{{ $style.RelPermalink }}" 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">
<link rel="stylesheet" href="{{ $printStyle.RelPermalink }}" integrity="{{ $printStyle.Data.Integrity }}" media="print">

{{ with .Site.Params.toc }}
{{ if eq . "hugo" }}
{{ $hugoToc := resources.Get "scss/hugo-toc.scss" | toCSS $options | fingerprint }}
<link rel="stylesheet" href="{{ $hugoToc.Permalink }}" integrity="{{ $hugoToc.Data.Integrity }}">
<link rel="stylesheet" href="{{ $hugoToc.RelPermalink }}" 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 }}">
<link rel="stylesheet" href="{{ $tocbot.RelPermalink }}" integrity="{{ $tocbot.Data.Integrity }}">
{{ end }}
{{ end }}
31 changes: 31 additions & 0 deletions static/css/hugo-toc.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions static/css/hugo-toc.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 369e151

Please sign in to comment.