From 8cd02c52e7abcbddd97afcf697c10d76d358ba44 Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Mon, 6 Oct 2025 21:44:41 +0200 Subject: Defer mathjax script --- layouts/partials/head/styles.html | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'layouts/partials') diff --git a/layouts/partials/head/styles.html b/layouts/partials/head/styles.html index cfab45a..e5432ad 100644 --- a/layouts/partials/head/styles.html +++ b/layouts/partials/head/styles.html @@ -1,17 +1,21 @@ -{{/* Resources */}} +{{/* Resources */}} {{- $tailwind := resources.Get "css/tailwind.css" | postCSS (dict "config" "./config/postcss.config.js") -}} {{/* MathJax */}} - - + + -{{/* Processor */}} -{{- $styles := slice $tailwind | resources.Concat "css/app.css" -}} +{{/* Processor */}} +{{- $styles := slice $tailwind | resources.Concat "css/app.css" -}} -{{/* Output */}} +{{/* Output */}} {{- if eq hugo.Environment "development" -}} -{{- else -}} +{{- else -}} {{- $styles := $styles | minify | fingerprint | resources.PostProcess -}} {{- end -}} -- cgit v1.3