summaryrefslogtreecommitdiff
path: root/layouts/_default
diff options
context:
space:
mode:
authorAdam Whitlock <adam@adamwhitlock.com>2021-12-31 14:49:31 -0600
committerAdam Whitlock <adam@adamwhitlock.com>2021-12-31 14:49:31 -0600
commit7f8537f23a66600e392a5c90c2f032edbf93fde5 (patch)
treeba9249e25df8ace4432421322650839d7ef201d7 /layouts/_default
parent14336900e72b70aa358cbe0b7b2e31eb17190d0a (diff)
Pictures work on pages, looks tight
Added the ability to pull a header.jpg from content bags for site layout. Added date to front page
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/single.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index c847a2b..c5e5c54 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -1,6 +1,12 @@
{{ define "main"}}
<main aria-role="main">
<div class="content is-normal mx-3">
+ <figure class="image ">
+ {{ with .Resources.GetMatch "header.jpg" }}
+ <img src="data:{{ .MediaType }};base64,{{ .Content | base64Encode }}">
+ {{ end }}
+ </figure>
+
<p class="title is-3"><i class="fas fa-file"></i> {{.Page.Title}}</p>
<p class="subtitle is-4">{{.Page.Description}}</p>
{{ $dateFormat := .Site.Params.dateFormat | default "January 2, 2006"}}