From 9e8b8822a511663b399c65a1cd9eb4ba487defdd Mon Sep 17 00:00:00 2001 From: budparr Date: Tue, 10 Apr 2018 18:28:56 -0400 Subject: [PATCH] Add CSS file from generated file Replaces hardcoded path Signed-off-by: budparr --- layouts/_default/baseof.html | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 0aa5018..3f9c13c 100755 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -17,13 +17,12 @@ {{ end }} - {{ $css_path := $.Param "dev.css_path" | default "themes/gohugo-theme-ananke/static/dist/css" }} - {{ with $css_path }} - {{ range readDir . }} - - {{ end }} + {{ $stylesheet := .Site.Data.webpack_assets.app }} + {{ with $stylesheet.css }} + {{ end }} + {{ block "favicon" . }} {{ partial "site-favicon.html" . }} {{ end }}