All checks were successful
Build and Deploy Hugo Site / build-and-deploy (push) Successful in 32s
Modified Dates for Snow
22 lines
667 B
HTML
22 lines
667 B
HTML
{{- $isWinter := false -}}
|
|
{{- $month := now.Month -}}
|
|
{{- $day := now.Day -}}
|
|
|
|
{{- if or (and (eq $month 12) (ge $day 10)) (and (eq $month 1) (le $day 8)) -}}
|
|
{{- $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>
|