Skip to content

Commit

Permalink
Merge pull request #45 from jd4no/master
Browse files Browse the repository at this point in the history
Updated Hyde-Hyde to use Hugo pipes for scss
  • Loading branch information
htr3n authored Oct 10, 2018
2 parents afc0e0f + ce4dba3 commit 56d21df
Show file tree
Hide file tree
Showing 40 changed files with 18 additions and 840 deletions.
4 changes: 2 additions & 2 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "static-src/scss/font-awesome"]
path = static-src/scss/font-awesome
[submodule "assets/scss/font-awesome"]
path = assets/scss/font-awesome
url = git@github.com:FortAwesome/font-awesome-sass.git
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
23 changes: 16 additions & 7 deletions layouts/partials/header/styles.html
Original file line number Diff line number Diff line change
@@ -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 }}
2 changes: 0 additions & 2 deletions static/css/hugo-toc.css

This file was deleted.

1 change: 0 additions & 1 deletion static/css/hugo-toc.css.map

This file was deleted.

Loading

0 comments on commit 56d21df

Please sign in to comment.