From 852ee62433ff40f8e4b920cc8c8e21cb624be1c0 Mon Sep 17 00:00:00 2001 From: Simon C Date: Mon, 9 Mar 2020 16:21:05 +0100 Subject: [PATCH] =?UTF-8?q?feat:=20Modifie=20les=20dates=20de=20modificati?= =?UTF-8?q?on=20des=20fichiers=20pour=20=C3=A9viter=20un=20changement=20d'?= =?UTF-8?q?etag?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index dad0aab..e39a0e4 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "scripts": { "start": "hugo server -D", "serve": "(cd public && python3 -m http.server 8080)", - "build": "rm -rf public && hugo -D --minify && node themes/hugo-theme-lowtech/scripts/typo", + "build": "rm -rf public && hugo -D --minify && node themes/hugo-theme-lowtech/scripts/typo && DATE=`date +\"%Y0101\"` && find public -exec touch -d $DATE {} +", "favicon": "convert static/icon.png -resize 32x32 -colors 16 \\( -clone 0 -resize 16x16 -extent 16x16 \\) \\( -clone 0 -resize 32x32 -extent 32x32 \\) -delete 0 static/favicon.ico", "svgo": "svgo */**.svg", "deploy": "docker-compose up -d --build",