From c9c577178234870f00b98e79dc73dd3f7bc64f58 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Mon, 9 Jan 2017 00:14:11 +0200 Subject: [PATCH] layouts/partials/sidebar.html: Check before using sidebar params If the user's config doesn't have [params.sidebar] defined they get errors when trying to build the site. It's better if we just check that this config block is defined before trying to use it, and then add something to the docs telling people that the site looks really bad without this defined. --- layouts/partials/sidebar.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index 6abffa5..02bc92f 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -1,11 +1,12 @@