Website V. 1.0.0
Some checks failed
Build and Deploy Hugo Site / build-and-deploy (push) Failing after 41s

Main Template for ETH Website
This commit is contained in:
2025-12-29 23:42:43 +01:00
parent e5172ca9e7
commit e1bf5b83da
57 changed files with 1252 additions and 2 deletions

View File

@@ -0,0 +1,21 @@
{{- $isWinter := false -}}
{{- $month := now.Month -}}
{{- $day := now.Day -}}
{{- if or (and (eq $month 12) (ge $day 10)) (and (eq $month 1) (le $day 7)) -}}
{{- $isWinter = true -}}
{{- end -}}
<!DOCTYPE html>
<html lang="{{ .Site.Language.Lang }}">
{{- partial "head.html" . -}}
<body dir="{{ .Site.Language.LanguageDirection | default `ltr` }}"
class="{{ if $isWinter }}snow-bg{{ end }}">
{{- partial "navbar.html" . -}}
{{- block "main" . }}{{ end -}}
{{- if or (eq .Site.Params.footer.enable nil) (.Site.Params.footer.enable) }}
{{ partial "footer.html" . }}
{{ end }}
{{ partial "scripts.html" . }}
</body>
</html>