From 2b1a786124d6049c9d4bd2f45dd1c602ded402ae Mon Sep 17 00:00:00 2001 From: Nicolas MASSE Date: Thu, 14 Jan 2021 23:01:20 +0100 Subject: [PATCH] Core Web Vitals: improve page loading time and accessibility --- hugo | 2 +- netlify.toml | 4 +++- themes/itix | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/hugo b/hugo index 03732e5..9921d3a 100755 --- a/hugo +++ b/hugo @@ -38,5 +38,5 @@ done # Remove dangling links find content/french -xtype l -exec rm -f {} \; -hugo gen chromastyles --style=borland > static/css/chroma.css +hugo gen chromastyles --style=borland > themes/itix/assets/css/chroma.css hugo "$@" diff --git a/netlify.toml b/netlify.toml index 8d26151..e403b7c 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,6 +1,8 @@ [build] publish = "public" -command = "./hugo --baseURL https://www.itix.fr" +# Use --minify to reduce HTML file size since Google is now tracking this +# as "Core Web Vitals". +command = "./hugo --baseURL https://www.itix.fr --minify" [build.environment] # Global HUGO_VERSION = "0.79.1" diff --git a/themes/itix b/themes/itix index 51fed60..b44dbf8 160000 --- a/themes/itix +++ b/themes/itix @@ -1 +1 @@ -Subproject commit 51fed607569ae66d6874a050c67a0f003dc51589 +Subproject commit b44dbf83c122f737f2a21359c469af6e792388ee