Files
aether/layouts/_default/single.html
Chris Graham 80878b3b24 Added Footer Partial Support
This commit includes the footer.html partial file in the template so
that it can be overridden to include content at the base of each page
such as copyright notice, bottom menu, etc.
2019-02-06 16:32:22 -06:00

34 lines
1.5 KiB
HTML

<!DOCTYPE html>
<html lang="{{ .Site.LanguageCode }}" dir="ltr">
{{ partial "head.html" . }}
<body class="single-body">
{{ partial "nav-bar.html" . }}
<main class="content side-text-padding">
<article class="post {{ if ne .Params.dropcap false }}dropcase{{ end }}">
<header class="post-header">
<h1 class="post-title">{{ .Title }}</h1>
<p class="post-date">Posted <time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "Jan 2, 2006" }}</time></p>
</header>
{{ if isset .Params "featuredimage" }}
<picture class="post-figure">
{{ if (fileExists (printf "%s/%s" "static" (replace (.Params.featuredimage) (path.Ext (.Params.featuredimage)) ".webp"))) -}}
<source srcset="{{ replace (.Params.featuredimage) (path.Ext (.Params.featuredimage)) ".webp" | absURL }}" type="image/webp">
{{- end }}
<source srcset="{{.Params.featuredimage | absURL }}">
<img src="{{.Params.featuredimage | absURL }}" {{ if isset .Params "featuredimagedescription" }}alt="{{.Params.featuredimagedescription}}"{{end}}>
</picture>
{{ end }}
{{ .Content }}
</article>
{{ template "_internal/disqus.html" . }}
</main>
<nav class="end-nav side-padding">
{{ with .PrevInSection }}
{{ .Render "li-next" }}
{{ end }}
{{ partial "home-card.html" . }}
</nav>
{{ partial "footer.html" . }}
{{ partial "scripts.html" . }}
</body>
</html>