From ba3061c516f1650caec1225c61b1dde33caa850c Mon Sep 17 00:00:00 2001 From: Matt Stratton Date: Thu, 2 Feb 2017 11:53:38 -0600 Subject: [PATCH] Make sidebar not show up on events page Signed-off-by: Matt Stratton --- layouts/_default/baseof.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 5c101df13..862a5de53 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -12,8 +12,8 @@
{{ if .IsPage }} - {{ $my_path := split $.Source.File.Path .Site.Params.pathseperator }} - {{ if eq (index $my_path 0) "events" }} + {{ $url_path := split $.Permalink "/" }} + {{ if eq (index $url_path 3) "events" }}
{{- block "main" . }} {{- end -}}