hermit-V2/layouts/index.html

33 lines
953 B
HTML
Raw Normal View History

{{ define "head" }}
2019-01-03 05:25:14 -05:00
{{ 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 -}}
2019-01-03 05:25:14 -05:00
<style>.bg-img {background-image: url('{{. | absURL}}');}</style>
{{- end -}}
{{- end -}}
{{ end }}
2018-10-23 01:15:50 -04:00
{{ define "main" }}
{{- if (or .Site.Params.images .Site.Params.bgImg) }}
<div class="bg-img"></div>
2018-11-22 08:33:07 -05:00
{{- end }}
2018-10-23 01:15:50 -04:00
<div id="spotlight" class="animated fadeIn">
<div id="home-center">
<h1 id="home-title">{{ .Site.Title }}</h1>
{{- with .Site.Params.homeSubtitle }}
<p id="home-subtitle">{{.}}</p>
{{- end }}
{{- with .Site.Params.social }}
<div id="home-social">
{{ partialCached "social-icons.html" . }}
</div>
{{- end }}
<nav id="home-nav" class="site-nav">
{{ partialCached "menu.html" . }}
2018-10-23 01:15:50 -04:00
</nav>
</div>
2023-10-24 01:40:35 -04:00
<div id="home-footer">{{ partialCached "single-footer.html" . }}</div>
2018-10-23 01:15:50 -04:00
</div>
{{ end }}