From 713531ec7d191694a7a939068b47329e204e6e1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Wed, 19 Feb 2025 21:00:46 +0100 Subject: [PATCH] theme: custom.css not written to public #1033 --- layouts/partials/custom-header.html | 20 ++++++++++++++++---- layouts/partials/version.txt | 2 +- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/layouts/partials/custom-header.html b/layouts/partials/custom-header.html index 9408010828..25514803a0 100644 --- a/layouts/partials/custom-header.html +++ b/layouts/partials/custom-header.html @@ -1,8 +1,20 @@ {{- $assetBusting := partialCached "assetbusting.gotmpl" . }} -{{- if or (fileExists "static/css/custom.css") (fileExists "assets/css/custom.css") }} - + +{{- $filePath := "css/custom.css" }} +{{- with (resources.Get (printf "/%s" $filePath)) }} + +{{- else }} + {{- if (fileExists (printf "/static/%s" $filePath)) }} + + {{- end }} {{- end }} -{{- if or (fileExists "static/js/custom.js") (fileExists "assets/js/custom.js") }} - + +{{- $filePath := "js/custom.js" }} +{{- with (resources.Get (printf "/%s" $filePath)) }} + +{{- else }} + {{- if (fileExists (printf "/static/%s" $filePath)) }} + + {{- end }} {{- end }} \ No newline at end of file diff --git a/layouts/partials/version.txt b/layouts/partials/version.txt index bf367badc3..a1fe327b45 100644 --- a/layouts/partials/version.txt +++ b/layouts/partials/version.txt @@ -1 +1 @@ -7.4.0+942fa83318bb9ac25455cbaae8ab764f90507bfb \ No newline at end of file +7.4.0+a8d787c37e4fd3e417f868b5124b6820a944b170 \ No newline at end of file