diff --git a/documentation/themes/beastie/layouts/shortcodes/list-articles-directories.html b/documentation/themes/beastie/layouts/shortcodes/list-articles-directories.html
index 3d9244153a..c772b38e0d 100644
--- a/documentation/themes/beastie/layouts/shortcodes/list-articles-directories.html
+++ b/documentation/themes/beastie/layouts/shortcodes/list-articles-directories.html
@@ -1,21 +1,21 @@
{{ $articles := slice}}
{{ range where .Site.Pages "Section" "articles" }}
{{ with .File }}
{{ $subDirsNumer := .File.Path | strings.Count "/" }}
{{ if eq $subDirsNumer 2 }}
{{ $articles = $articles | append (dict "page" . "path" .File.Path) }}
{{ end }}
{{ end }}
{{ end }}
{{ range sort $articles "path" }}
{{ if in .path "_index.adoc" }}
{{ $articlePath := replaceRE "/_index.adoc" "" .path }}
{{ $articleName := replaceRE "articles/" "" $articlePath }}
- - {{ $articleName }}
+ - {{ $articleName }}
{{ end }}
{{ end }}
diff --git a/documentation/themes/beastie/layouts/shortcodes/list-books-directories.html b/documentation/themes/beastie/layouts/shortcodes/list-books-directories.html
index dbdbd3a2ea..d1eda384d5 100644
--- a/documentation/themes/beastie/layouts/shortcodes/list-books-directories.html
+++ b/documentation/themes/beastie/layouts/shortcodes/list-books-directories.html
@@ -1,20 +1,20 @@
{{ $books := slice}}
{{ range where .Site.Pages "Section" "books" }}
{{ with .File }}
{{ $subDirsNumer := .File.Path | strings.Count "/" }}
{{ if eq $subDirsNumer 2 }}
{{ $books = $books | append (dict "page" . "path" .File.Path) }}
{{ end }}
{{ end }}
{{ end }}
{{ range sort $books "path" }}
{{ if in .path "_index.adoc" }}
{{ $bookPath := replaceRE "/_index.adoc" "" .path }}
{{ $bookName := replaceRE "books/" "" $bookPath }}
- - {{ $bookName }}
+ - {{ $bookName }}
{{ end }}
{{ end }}