summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--layouts/_default/single.html1
-rw-r--r--layouts/partials/components/banner.html12
2 files changed, 13 insertions, 0 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index f1e37444..3733936e 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -8,6 +8,7 @@
<!-- Post Header -->
<header class="post-header">
{{ if in .Site.Params.mainSections .Type }}
+ {{ partial "components/banner.html" . }}
<!-- Title and Subtitle -->
<h1 class="post-title">
{{ .Title }}
diff --git a/layouts/partials/components/banner.html b/layouts/partials/components/banner.html
new file mode 100644
index 00000000..c4f27c01
--- /dev/null
+++ b/layouts/partials/components/banner.html
@@ -0,0 +1,12 @@
+{{ with .Params.banner }}
+<div class="post-banner">
+ <img src="{{ . }}">
+</div>
+<style>
+.post-banner img {
+ width: 100%;
+ height: auto;
+ display: block;
+}
+</style>
+{{ end }}