From 2a2311ea3fb1b89a266668bfd16aa96475fc183e Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Wed, 19 Jun 2019 20:30:25 +0200 Subject: theme: Update terrassa theme to newest version This updates the terrassa theme to the latest version. --- themes/terrassa/layouts/_default/list.html | 12 ++++++------ themes/terrassa/layouts/_default/single.html | 6 ++++++ 2 files changed, 12 insertions(+), 6 deletions(-) (limited to 'themes/terrassa/layouts/_default') 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" }}
- {{ $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" . }}
-{{ 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 }} + {{ if ne .Type "page" }}
{{ .Content }}
+ {{ else }} +
+ {{ .Content }} +
+ {{ end }} {{ if ne .Type "page" }}