fix: debug msg

This commit is contained in:
George Cushen 2024-05-19 13:06:15 +01:00
commit 370dc623ab

View file

@ -49,7 +49,7 @@
{{ $theme_name := (lower site.Params.appearance.color) | default "blue" }} {{ $theme_name := (lower site.Params.appearance.color) | default "blue" }}
{{ $theme_path := printf "css/themes/%s.css" $theme_name }} {{ $theme_path := printf "css/themes/%s.css" $theme_name }}
{{ if not (fileExists (printf "assets/%s" $theme_path)) }} {{ if not (fileExists (printf "assets/%s" $theme_path)) }}
{{ errorf "The specified color theme `%s.css` was not found in `assets/css/themes/`. Either install your custom color theme in the folder or set the `color` theme value in `params.yaml` to an existing theme such as `blue`." }} {{ errorf "The specified color theme `%s.css` was not found in `assets/css/themes/`. Either install your custom color theme in the folder or set the `color` theme value in `params.yaml` to an existing theme such as `blue`." $theme_name }}
{{ else }} {{ else }}
{{ $theme_css := resources.Get $theme_path | minify }} {{ $theme_css := resources.Get $theme_path | minify }}
<link rel="stylesheet" href="{{ $theme_css.RelPermalink }}" /> <link rel="stylesheet" href="{{ $theme_css.RelPermalink }}" />