From af927333aa44ae7573dc8025965aeb0980807996 Mon Sep 17 00:00:00 2001 From: Marcel Schneider Date: Wed, 8 Jan 2020 17:39:06 +0100 Subject: [PATCH] fix bug with wrong path generation --- {static => assets}/css/style.css | 0 layouts/partials/head.html | 43 ++++++++++++++++---------------- 2 files changed, 22 insertions(+), 21 deletions(-) rename {static => assets}/css/style.css (100%) diff --git a/static/css/style.css b/assets/css/style.css similarity index 100% rename from static/css/style.css rename to assets/css/style.css diff --git a/layouts/partials/head.html b/layouts/partials/head.html index ac24daa..a283657 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,25 +1,26 @@ - - - - - {{ with .Site.Params.name }}{{ end }} - {{ with .Site.Params.description }}{{ end }} - {{ .Hugo.Generator }} - {{ if .IsHome }}{{ .Title }}{{ else }}{{ .Title }} · {{ .Site.Title }}{{ end }} - - - {{ range .Site.Params.customCSS }} - - {{ end }} + + + + + {{ with .Site.Params.name }}{{ end }} + {{ with .Site.Params.description }}{{ end }} + {{ .Hugo.Generator }} + {{ if .IsHome }}{{ .Title }}{{ else }}{{ .Title }} · {{ .Site.Title }}{{ end }} + + {{ $style := resources.Get "css/style.css" | resources.Minify | resources.Fingerprint }} + + {{ range .Site.Params.customCSS }} + + {{ end }} - {{ if .Site.Params.enableRSS }} - - {{ end }} + {{ if .Site.Params.enableRSS }} + + {{ end }} - {{ template "_internal/opengraph.html" . }} - {{ template "_internal/google_news.html" . }} - {{ template "_internal/schema.html" . }} - {{ template "_internal/twitter_cards.html" . }} - + {{ template "_internal/opengraph.html" . }} + {{ template "_internal/google_news.html" . }} + {{ template "_internal/schema.html" . }} + {{ template "_internal/twitter_cards.html" . }} +