2019-01-01 23:08:30 -05:00
|
|
|
{{ define "head" }}
|
2019-01-03 05:25:14 -05:00
|
|
|
{{ if .Params.featuredImg -}}
|
2019-01-07 07:39:51 -05:00
|
|
|
<style>.bg-img {background-image: url('{{.Params.featuredImg}}');}</style>
|
2019-01-01 23:08:30 -05:00
|
|
|
{{- else if .Params.images -}}
|
|
|
|
{{- range first 1 .Params.images -}}
|
2019-01-03 05:25:14 -05:00
|
|
|
<style>.bg-img {background-image: url('{{. | absURL}}');}</style>
|
2019-01-01 23:08:30 -05:00
|
|
|
{{- end -}}
|
|
|
|
{{- end -}}
|
|
|
|
{{ end }}
|
|
|
|
|
2018-10-23 01:15:50 -04:00
|
|
|
{{ define "header" }}
|
2019-01-01 23:08:30 -05:00
|
|
|
{{ partial "header.html" . }}
|
2018-10-23 01:15:50 -04:00
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ define "main" }}
|
2019-01-01 23:08:30 -05:00
|
|
|
{{- if (or .Params.images .Params.featuredImg) }}
|
|
|
|
<div class="bg-img"></div>
|
|
|
|
{{- end }}
|
2018-10-23 01:15:50 -04:00
|
|
|
<main class="site-main section-inner thin animated fadeIn faster">
|
|
|
|
<h1>{{ .Title }}</h1>
|
|
|
|
<div class="content">
|
2023-11-12 10:26:10 -05:00
|
|
|
{{ .Content | replaceRE "(<h[1-6] id=\"([^\"]+)\".+)(</h[1-6]+>)" `${1}<a href="#${2}" class="anchor" aria-hidden="true">{{- partial "svg.html" (dict "context" . "name" "content-anchor") -}}</a>${3}` | safeHTML }}
|
2018-10-23 01:15:50 -04:00
|
|
|
</div>
|
2018-12-29 22:06:38 -05:00
|
|
|
{{- if .Params.comments }}
|
|
|
|
<div id="comments" class="thin">
|
|
|
|
{{ partial "comments.html" . }}
|
2018-12-11 00:41:01 -05:00
|
|
|
</div>
|
2018-10-23 01:15:50 -04:00
|
|
|
{{- end }}
|
|
|
|
</main>
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ define "footer" }}
|
|
|
|
{{ partialCached "footer.html" . }}
|
2018-12-11 11:02:36 -05:00
|
|
|
{{ end }}
|