2023-12-04 03:43:34 +00:00
|
|
|
{{ define "head" }}
|
|
|
|
{{ if .Site.Params.bgImg -}}
|
|
|
|
<style>.bg-img {background-image: url('{{.Site.Params.bgImg}}');}</style>
|
|
|
|
{{- else if .Site.Params.images -}}
|
|
|
|
{{- range first 1 .Site.Params.images -}}
|
|
|
|
<style>.bg-img {background-image: url('{{. | absURL}}');}</style>
|
|
|
|
{{- end -}}
|
|
|
|
{{- end -}}
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ define "main" }}
|
|
|
|
{{- if (or .Site.Params.images .Site.Params.bgImg) }}
|
|
|
|
<div class="bg-img"></div>
|
|
|
|
{{- end }}
|
|
|
|
<div id="home-center">
|
|
|
|
<h1 id="home-title">{{ .Site.Title }}</h1>
|
|
|
|
<nav id="home-nav" class="site-nav">
|
|
|
|
{{ partialCached "menu.html" . }}
|
|
|
|
</nav>
|
|
|
|
</div>
|
2023-12-07 09:28:51 +00:00
|
|
|
<div id="site-footer">
|
2023-12-06 03:42:08 +00:00
|
|
|
{{ if .IsTranslated }}
|
|
|
|
<nav class="LangNav">
|
|
|
|
{{ range .Translations }}
|
|
|
|
<a href="{{ .Permalink }}">{{ .Language.LanguageName }}</a>
|
|
|
|
{{ end}}
|
|
|
|
</nav>
|
|
|
|
{{ end }}
|
2023-12-04 03:43:34 +00:00
|
|
|
<p>
|
2023-12-07 09:28:51 +00:00
|
|
|
© {{ now.Format "2006" }} <a href="{{ .Site.BaseURL }}">{{ .Site.Params.author.name }}</a>{{ .Site.Params.footerCopyright | safeHTML }}
|
2023-12-04 03:43:34 +00:00
|
|
|
</p>
|
2023-12-07 09:28:51 +00:00
|
|
|
|
2023-12-04 03:43:34 +00:00
|
|
|
</div>
|
|
|
|
{{ end }}
|