diff options
| author | Nicholas Johnson <> | 2026-09-06 00:00:00 +0000 |
|---|---|---|
| committer | Nicholas Johnson <> | 2026-09-06 00:00:00 +0000 |
| commit | ebb83f9f7a29c734b4c25d17f482345fc6b8b84565111483559d1fe02c778acb (patch) | |
| tree | bcc6dc0b55d3a5b3c5beaa48bf00efa6bf8f33978d82bf7255562e952750aff6 /layouts/_partials/head.html | |
| parent | ed01d97ca07622a4adf87fc4e806c083c7d624b2ce463eef588149c86110077c (diff) | |
| download | hugo-theme-journal-ebb83f9f7a29c734b4c25d17f482345fc6b8b84565111483559d1fe02c778acb.tar.gz hugo-theme-journal-ebb83f9f7a29c734b4c25d17f482345fc6b8b84565111483559d1fe02c778acb.zip | |
Minify and fingerprint CSS stylesheet
This improves page performance and load times.
Diffstat (limited to 'layouts/_partials/head.html')
| -rw-r--r-- | layouts/_partials/head.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/_partials/head.html b/layouts/_partials/head.html index 8250e19..34c93e5 100644 --- a/layouts/_partials/head.html +++ b/layouts/_partials/head.html @@ -10,10 +10,10 @@ {{- end -}} {{ if .Site.Params.custom_css -}} {{ range .Site.Params.custom_css }} - <link rel="stylesheet" type="text/css" href="{{ relURL . }}"> + <link rel="stylesheet" type="text/css" href="{{ (resources.Get . | minify | fingerprint).RelPermalink }}"> {{- end -}} {{ else }} - <link rel="stylesheet" type="text/css" href="{{ (resources.Get "static/css/style.css").RelPermalink }}"> + <link rel="stylesheet" type="text/css" href="{{ (resources.Get "static/css/style.css" | minify | fingerprint).RelPermalink }}"> {{- end -}} {{ if (not (fileExists "static/favicon.ico")) }} <link rel="icon" href="data:,"> |
