diff --git a/layouts/index.html b/layouts/index.html
index 1a9d294..127e37c 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,22 +1,28 @@
-{{ define "partials/list-limited.html" }} {{/* This is not pretty but I'm not
-good at templates */}} {{ $params := . | transform.Unmarshal (dict "delimiter"
-";") }} {{ $fields := index $params 0 }} {{ $pageurl := index $fields 0 }} {{
-$pagename := index $fields 1 }} {{ $limit := 5 }} {{ $pages := where
-site.RegularPages "Section" $pageurl }} {{- with $pages }}
+{{ define "partials/list-limited.html" }}
+{{/* This is not pretty but I'm not good at templates */}}
+{{ $params := . | transform.Unmarshal (dict "delimiter" ";") }}
+{{ $fields := index $params 0 }}
+{{ $pageurl := index $fields 0 }}
+{{ $pagename := index $fields 1 }}
+{{ $limit := 5 }}
+{{ $pages := where site.RegularPages "Section" $pageurl }}
+
+{{- with $pages }}
Latest {{$pagename}}
{{- range ( $pages | first $limit ) }}
-
+
{{ .Title }}
- {{ end }} {{ if (gt ($pages | len) $limit )}}
- See more…
{{ end }}
+ {{ if (gt ($pages | len) $limit )}}See more…{{ end }}
-{{ end }} {{ end }} {{ define "main" }}
+{{ end }}
+
+{{ end }}
+
+{{ define "main" }}
@@ -48,5 +54,8 @@ site.RegularPages "Section" $pageurl }} {{- with $pages }}
{{ $name }}
{{ end }}
-{{ partial "list-limited.html" "posts;posts" }} {{ partial "list-limited.html"
-"pages;pages" }} {{ end }}
+
+{{ partial "list-limited.html" "posts;posts" }}
+{{ partial "list-limited.html" "pages;pages" }}
+
+{{ end }}
\ No newline at end of file