From 5657112dfb0e6eac2faa2ae1dc0978ed29030709 Mon Sep 17 00:00:00 2001 From: panda-z Date: Mon, 13 Apr 2020 21:18:35 +0800 Subject: chore(build): drop webpack and use Hugo Pipes (#130) --- layouts/partials/head.html | 3 ++- layouts/partials/scripts.html | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'layouts/partials') diff --git a/layouts/partials/head.html b/layouts/partials/head.html index d602390..7a9f3ea 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -61,7 +61,8 @@ {{- end -}} - +{{ $style := resources.Get "sass/main.scss" | toCSS | minify | fingerprint }} + {{ if .Site.Params.publicCDN.enable -}} {{ if .Site.Params.fancybox }}{{ .Site.Params.publicCDN.fancyboxCSS | safeHTML }}{{ end }} {{- else -}} diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html index de35229..16cec74 100644 --- a/layouts/partials/scripts.html +++ b/layouts/partials/scripts.html @@ -67,7 +67,10 @@ {{- end -}} {{- end }} - +{{ $even := resources.Get "js/even.js" }} +{{ $main := resources.Get "js/main.js" }} +{{ $js := slice $even $main | resources.Concat "js/main.js" | fingerprint }} + {{- if and (or .Params.mathjax (and .Site.Params.mathjax (ne .Params.mathjax false))) (or .IsPage .IsHome) }}