From c1482d2efc09d82bb0ea0005cd29559b0f8895e5 Mon Sep 17 00:00:00 2001
From: lxndrblz <12200062+lxndrblz@users.noreply.github.com>
Date: Mon, 26 May 2025 16:49:40 +0000
Subject: [PATCH] style: prettier format all files
---
layouts/partials/head.html | 30 ++++++++++++------------------
1 files changed, 12 insertions(+), 18 deletions(-)
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 1329064..0d4d3de 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -39,32 +39,26 @@
<!-- CSS -->
{{ $contentRatio := or site.Params.contentratio 0.6 -}}
{{ $languageDirection := or site.Language.LanguageDirection "ltr" -}}
- {{ $vars := dict
- "text_direction" $languageDirection
- "content_ratio" (printf "%f%%" (mul $contentRatio 100))
- "sidebar_ratio" (printf "%f%%" (mul (sub 1.0 $contentRatio) 100))
- "content_ratio_wide" (printf "%f%%" (mul 0.8 (mul $contentRatio 100)))
- "sidebar_ratio_wide" (printf "%f%%" (mul 0.8 (mul (sub 1.0 $contentRatio) 100)))
+ {{ $vars := dict
+ "text_direction" $languageDirection
+ "content_ratio" (printf "%f%%" (mul $contentRatio 100))
+ "sidebar_ratio" (printf "%f%%" (mul (sub 1.0 $contentRatio) 100))
+ "content_ratio_wide" (printf "%f%%" (mul 0.8 (mul $contentRatio 100)))
+ "sidebar_ratio_wide" (printf "%f%%" (mul 0.8 (mul (sub 1.0 $contentRatio) 100)))
-}}
- {{ $options := dict
- "transpiler" "libsass"
- "vars" $vars
- "targetPath" (printf "css/anatole%s.css" (cond (eq site.Language.LanguageDirection "") "" (printf ".%s" site.Language.LanguageDirection)))
+ {{ $options := dict
+ "transpiler" "libsass"
+ "vars" $vars
+ "targetPath" (printf "css/anatole%s.css" (cond (eq site.Language.LanguageDirection "") "" (printf ".%s" site.Language.LanguageDirection)))
-}}
{{ with resources.Get "scss/main.scss" -}}
{{ if hugo.IsProduction -}}
{{ with . | toCSS $options | minify | fingerprint }}
- <link rel="stylesheet"
- href="{{ .RelPermalink }}"
- integrity="{{ .Data.Integrity }}"
- crossorigin="anonymous">
+ <link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous" />
{{ end -}}
{{ else -}}
{{ with . | toCSS $options }}
- <link
- rel="stylesheet"
- href="{{ .RelPermalink }}"
- />
+ <link rel="stylesheet" href="{{ .RelPermalink }}" />
{{ end -}}
{{ end -}}
{{ end -}}
--
Gitblit v1.10.0