Website V. 1.0.0
Some checks failed
Build and Deploy Hugo Site / build-and-deploy (push) Failing after 41s
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:
21
layouts/_default/baseof.html
Normal file
21
layouts/_default/baseof.html
Normal 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>
|
||||
Reference in New Issue
Block a user