diff --git a/assets/sass/_theme/blocks/sitemap.sass b/assets/sass/_theme/blocks/sitemap.sass index aaa5c685b190f6e17b43bf588ae7f1a574a7fb95..bb45be78dfabbd6cc8eceefc2124610dcf8d940d 100644 --- a/assets/sass/_theme/blocks/sitemap.sass +++ b/assets/sass/_theme/blocks/sitemap.sass @@ -3,4 +3,6 @@ a text-decoration: none ul + h3 - margin-top: $spacing3 \ No newline at end of file + margin-top: $spacing3 + &:first-of-type + padding-top: 0 \ No newline at end of file diff --git a/layouts/pages/sitemap.html b/layouts/pages/sitemap.html index 65c90074fbb9dbb40673dbc10da0ee2cfef12b55..45fd62f30ec595762f015a4b0082ad116de57e45 100644 --- a/layouts/pages/sitemap.html +++ b/layouts/pages/sitemap.html @@ -20,13 +20,13 @@ {{ partial "blocks/list.html" . }} - <section class="block block-sitemap"> - <div class="container"> - <div class="block-content"> - {{ range .Site.Sections }} - {{ if ne .Type "sitemap" }} - {{ $permalink := .Permalink }} - <h3 id="{{ .Type }}"> + {{ range .Site.Sections }} + {{ if ne .Type "sitemap" }} + {{ $permalink := .Permalink }} + <section class="block block-sitemap" id="{{ .Type }}"> + <div class="container"> + <div class="block-content"> + <h3> <a href="{{ $permalink }}">{{ safeHTML .Title }}</a> </h3> <ul> @@ -36,11 +36,10 @@ {{ end }} {{ end }} </ul> - {{ end }} - {{ end }} - </div> - </div> - </section> - + </div> + </div> + </section> + {{ end }} + {{ end }} </div> {{ end }}