From b7e2778dbd590cfae3954ab8718ee9b509020e55 Mon Sep 17 00:00:00 2001 From: himanoa Date: Wed, 3 Apr 2019 17:29:51 +0900 Subject: [PATCH] Activate hugo assets minify --- assets/js/{js => }/core.js | 0 layouts/partials/head.html | 9 +++++++-- layouts/partials/scripts.html | 5 +++-- 3 files changed, 10 insertions(+), 4 deletions(-) rename assets/js/{js => }/core.js (100%) diff --git a/assets/js/js/core.js b/assets/js/core.js similarity index 100% rename from assets/js/js/core.js rename to assets/js/core.js diff --git a/layouts/partials/head.html b/layouts/partials/head.html index d49f8f6..23f959e 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -21,7 +21,12 @@ {{ end -}} - + {{ $mainStyle := resources.Get "css/style.css" | minify }} + {{ $xcodeStyle := resources.Get "css/xcode.css" | minify }} + {{ $fontStyle := resources.Get "css/latolatinfonts.css" | minify }} + + + {{ range .AlternativeOutputFormats -}} {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} {{ end -}} @@ -33,4 +38,4 @@ } {{- end }} - \ No newline at end of file + diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html index 97e3f77..e02d6d9 100644 --- a/layouts/partials/scripts.html +++ b/layouts/partials/scripts.html @@ -2,7 +2,8 @@ - + {{ $corejs := resources.Get "js/core.js" | minify }} + \ No newline at end of file +