From 8a3f367817a1b20ea49c47113ecec8b78c263719 Mon Sep 17 00:00:00 2001 From: Curtis Timson Date: Sun, 18 Feb 2018 20:01:08 +0000 Subject: :sparkles: Make sidebar image optional --- exampleSite/config.toml | 2 +- layouts/partials/post/sidebar.html | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index f23c683..a56d309 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -75,4 +75,4 @@ theme = "../.." [params.sidebar] enabled = true - image = "images/pic09.jpg" \ No newline at end of file + \ No newline at end of file diff --git a/layouts/partials/post/sidebar.html b/layouts/partials/post/sidebar.html index f2feb9a..203043a 100644 --- a/layouts/partials/post/sidebar.html +++ b/layouts/partials/post/sidebar.html @@ -1,6 +1,8 @@
+ {{ if .Site.Params.Sidebar.image }} + {{ end }}

Sed etiam lorem nulla

-- cgit v1.2.3