mirror of
https://github.com/theNewDynamic/gohugo-theme-ananke.git
synced 2025-06-08 17:22:46 +00:00
Add CSS file from generated file
Replaces hardcoded path Signed-off-by: budparr <budparr@gmail.com>
This commit is contained in:
parent
0ac485a629
commit
9e8b8822a5
@ -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 }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user