styles.html 652 B

1234567891011121314
  1. {{ $main_options := (dict "targetPath" "css/main.css" "outputStyle" "compressed") }}
  2. {{ $main_template := resources.Get "sass/main.scss" }}
  3. {{ $main_style := $main_template | resources.ExecuteAsTemplate "main_parsed.scss" . | toCSS $main_options | resources.Minify }}
  4. <link rel="stylesheet" href="{{ $main_style.RelPermalink }}">
  5. {{ if .Site.Params.custom_css }}
  6. {{ range .Site.Params.custom_css }}
  7. {{ $custom_template := resources.Get . }}
  8. {{ if $custom_template }}
  9. {{ $custom_style := $custom_template | resources.ToCSS | resources.Minify }}
  10. <link rel="stylesheet" href="{{ $custom_style.RelPermalink }}">
  11. {{ end }}
  12. {{ end }}
  13. {{ end }}