feat: Modifie les dates de modification des fichiers pour éviter un changement d'etag
This commit is contained in:
parent
f5122df4c7
commit
852ee62433
|
@ -5,7 +5,7 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "hugo server -D",
|
"start": "hugo server -D",
|
||||||
"serve": "(cd public && python3 -m http.server 8080)",
|
"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",
|
"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",
|
"svgo": "svgo */**.svg",
|
||||||
"deploy": "docker-compose up -d --build",
|
"deploy": "docker-compose up -d --build",
|
||||||
|
|
Loading…
Reference in New Issue