diff --git a/themes/piratecare/layouts/_default/list.html b/themes/piratecare/layouts/_default/list.html
index 261f11f..4987d49 100644
--- a/themes/piratecare/layouts/_default/list.html
+++ b/themes/piratecare/layouts/_default/list.html
@@ -21,8 +21,8 @@
- {{ range split .Params.has_topics "," }}
- {{ with $.GetPage (printf "%s%s" "/topic/" (trim . " ")) }}
+ {{ range .Params.has_topics }}
+ {{ with $.GetPage (printf "%s%s" "/topic/" . ) }}
{{ end }}
{{ end }}
diff --git a/themes/piratecare/layouts/session/single.html b/themes/piratecare/layouts/session/single.html
index cee77ac..6033950 100644
--- a/themes/piratecare/layouts/session/single.html
+++ b/themes/piratecare/layouts/session/single.html
@@ -1,47 +1,40 @@
{{ define "sidebar" }}
-
- session ⦚ {{ .Title }}
-
+
+ session ⦚ {{ .Title }}
+
- {{ if ne (trim .Page.TableOfContents "\n") "" }}
-
- {{ end }}
-
-