Add CSS file from generated file

Replaces hardcoded path

Signed-off-by: budparr <budparr@gmail.com>
This commit is contained in:
budparr 2018-04-10 18:28:56 -04:00
parent 0ac485a629
commit 9e8b8822a5
No known key found for this signature in database
GPG Key ID: 05AB7813F9C39728

View File

@ -17,13 +17,12 @@
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
{{ end }}
{{ $css_path := $.Param "dev.css_path" | default "themes/gohugo-theme-ananke/static/dist/css" }}
{{ with $css_path }}
{{ range readDir . }}
<link href='/dist/css/{{ .Name }}' rel='stylesheet' type="text/css" data-turbolinks-track="reload" />
{{ end }}
{{ $stylesheet := .Site.Data.webpack_assets.app }}
{{ with $stylesheet.css }}
<link href="{{ printf "%s%s" "/dist/" . }}" rel="stylesheet">
{{ end }}
{{ block "favicon" . }}
{{ partial "site-favicon.html" . }}
{{ end }}