log101-dot-dev/layouts/index.html
2023-12-07 10:20:37 +00:00

26 lines
677 B
HTML

{{ 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>
</div>
<div id="site-footer">
{{ partial "footer.html" . }}
</div>
{{ end }}