From 299cf0117125aa4ee93674fabab00ad9e2f7241f Mon Sep 17 00:00:00 2001 From: Andrew Gioia Date: Fri, 8 May 2026 09:58:51 -0400 Subject: [PATCH] Adds asset fingerprinting for cache issues; moves js file to assets to take advantage of this --- {static => assets}/js/main.js | 0 layouts/_default/baseof.html | 6 ++++-- 2 files changed, 4 insertions(+), 2 deletions(-) rename {static => assets}/js/main.js (100%) diff --git a/static/js/main.js b/assets/js/main.js similarity index 100% rename from static/js/main.js rename to assets/js/main.js diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 632b65b..808ec18 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -19,11 +19,13 @@ {{ end }} - {{ with resources.Get "css/site.css" }} + {{ with resources.Get "css/site.css" | fingerprint }} {{ end }} {{ if or .IsHome (and .IsPage (eq .Section "studies") .Params.study.toc) }} - + {{ with resources.Get "js/main.js" | fingerprint }} + + {{ end }} {{ end }}