2019-01-01 04:53:20 -05:00
|
|
|
{{ define "head" }}
|
2019-01-03 05:25:14 -05:00
|
|
|
{{ if .Site.Params.bgImg -}}
|
2019-01-07 07:39:51 -05:00
|
|
|
<style>.bg-img {background-image: url('{{.Site.Params.bgImg}}');}</style>
|
2019-01-01 04:53:20 -05:00
|
|
|
{{- 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>
|
2019-01-01 04:53:20 -05:00
|
|
|
{{- end -}}
|
|
|
|
{{- end -}}
|
|
|
|
{{ end }}
|
|
|
|
|
2018-10-23 01:15:50 -04:00
|
|
|
{{ define "main" }}
|
2019-01-01 04:53:20 -05:00
|
|
|
{{- 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">
|
2019-06-22 06:44:30 -04:00
|
|
|
{{ partialCached "menu.html" . }}
|
2018-10-23 01:15:50 -04:00
|
|
|
</nav>
|
|
|
|
</div>
|
|
|
|
<div id="home-footer">
|
2019-01-01 01:06:04 -05:00
|
|
|
<p>
|
|
|
|
© {{ now.Format "2006" }} <a href="{{ .Site.BaseURL }}">{{ .Site.Author.name }}</a>{{ .Site.Params.footerCopyright | safeHTML }}
|
2023-07-05 04:49:04 -04:00
|
|
|
{{/*{{- with (not (in (.Site.Language.Get "disableKinds") "RSS")) }}*/}}
|
|
|
|
· <a href="{{ "posts/index.xml" | absLangURL }}" target="_blank" title="rss">{{ partial "svg.html" (dict "context" . "name" "rss") }}</a>
|
|
|
|
{{/*{{ end }}*/}}
|
2019-01-01 01:06:04 -05:00
|
|
|
</p>
|
2018-10-23 01:15:50 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|