diff options
author | Dimitri Staessens <dimitri@ouroboros.rocks> | 2019-06-19 20:30:25 +0200 |
---|---|---|
committer | Dimitri Staessens <dimitri@ouroboros.rocks> | 2019-06-19 20:30:25 +0200 |
commit | 2a2311ea3fb1b89a266668bfd16aa96475fc183e (patch) | |
tree | 29af79791f578612ef759b9d2421a3fc7c5690ee /themes/terrassa/layouts/_default | |
parent | d3198abf51c1785994bbbbebd195aad44978e5ff (diff) | |
download | website-2a2311ea3fb1b89a266668bfd16aa96475fc183e.tar.gz website-2a2311ea3fb1b89a266668bfd16aa96475fc183e.zip |
theme: Update terrassa theme to newest version
This updates the terrassa theme to the latest version.
Diffstat (limited to 'themes/terrassa/layouts/_default')
-rw-r--r-- | themes/terrassa/layouts/_default/list.html | 12 | ||||
-rw-r--r-- | themes/terrassa/layouts/_default/single.html | 6 |
2 files changed, 12 insertions, 6 deletions
diff --git a/themes/terrassa/layouts/_default/list.html b/themes/terrassa/layouts/_default/list.html index c01a3b6..06390f4 100644 --- a/themes/terrassa/layouts/_default/list.html +++ b/themes/terrassa/layouts/_default/list.html @@ -1,11 +1,11 @@ {{ define "main" }} <main class="content"> - {{ $paginator := .Paginate (where .Data.Pages.ByDate.Reverse "Type" "posts") }} + {{ $paginator := .Paginate (where .Data.Pages.ByDate.Reverse "Type" "posts") }} - {{ range $paginator.Pages }} - {{ .Render "card" }} - {{ end }} + {{ range $paginator.Pages }} + {{ .Render "card" }} + {{ end }} - {{ template "_internal/pagination.html" . }} + {{ template "_internal/pagination.html" . }} </main> -{{ end }}
\ No newline at end of file +{{ end }} diff --git a/themes/terrassa/layouts/_default/single.html b/themes/terrassa/layouts/_default/single.html index f6b15ae..9f108f7 100644 --- a/themes/terrassa/layouts/_default/single.html +++ b/themes/terrassa/layouts/_default/single.html @@ -18,9 +18,15 @@ {{ end }} </header> + {{ if ne .Type "page" }} <main class="post__body"> {{ .Content }} </main> + {{ else }} + <main class="post__body" style="margin-bottom: 3rem;"> + {{ .Content }} + </main> + {{ end }} {{ if ne .Type "page" }} <footer class="post__footer"> |