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 -}}