Implement Hugo Pipes to process sass and js. Gulp now only for lint.
This commit is contained in:
parent
b763e4f514
commit
336b3156ca
1 changed files with 1343 additions and 1668 deletions
12
layouts/partials/styles.html
Normal file
12
layouts/partials/styles.html
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{{ $main_options := (dict "targetPath" "css/styles.css" "outputStyle" "compressed" "includePaths" (slice "assets/lib/typey/stylesheets")) -}}
|
||||
{{ $print_options := (dict "targetPath" "css/print.css" "outputStyle" "compressed" "includePaths" (slice "assets/lib/typey/stylesheets")) -}}
|
||||
{{ $main_style := resources.Get "sass/styles.scss" | toCSS $main_options | fingerprint -}}
|
||||
{{ $print_style := resources.Get "sass/print.scss" | toCSS $print_options | fingerprint -}}
|
||||
{{ if eq .Hugo.Environment "dev" -}}
|
||||
{{ $main_options = (dict "targetPath" "css/styles.css" "outputStyle" "nested" "enableSourceMap" true "includePaths" (slice "assets/lib/typey/stylesheets")) -}}
|
||||
{{ $print_options = (dict "targetPath" "css/print.css" "outputStyle" "nested" "enableSourceMap" true "includePaths" (slice "assets/lib/typey/stylesheets")) -}}
|
||||
{{ $main_style = resources.Get "sass/styles.scss" | toCSS $main_options -}}
|
||||
{{ $print_style = resources.Get "sass/print.scss" | toCSS $print_options -}}
|
||||
{{ end -}}
|
||||
<link rel="stylesheet" href="{{ $main_style.RelPermalink }}">
|
||||
<link rel="stylesheet" href="{{ $print_style.RelPermalink }}" media="print">
|
||||
Loading…
Reference in a new issue