diff --git a/layouts/index.html b/layouts/index.html
index fdf1d47..1a9d294 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -45,7 +45,7 @@ site.RegularPages "Section" $pageurl }} {{- with $pages }}
Browse by series
{{ range $link, $name := $.Site.Data.home.series }}
- {{ $name }}
+ {{ $name }}
{{ end }}
{{ partial "list-limited.html" "posts;posts" }} {{ partial "list-limited.html"
diff --git a/layouts/shortcodes/next-up.html b/layouts/shortcodes/next-up.html
index 670051e..06d21bc 100644
--- a/layouts/shortcodes/next-up.html
+++ b/layouts/shortcodes/next-up.html
@@ -1,4 +1,4 @@
-{{ $tag := .Get 0 }} {{ $param := .Get 1 }} {{ $next := sort (where (sort
+{{ $tag := .Get 0 }} {{ $param := .Get 1 }} {{ $next := where (where (sort
site.RegularPages "Date" "asc") ".Date" "gt" .Page.Date) ".Params.tags"
"intersect" (slice $tag) | first 1 }} {{ with $next }} {{ $page := index . 0 }}