aboutsummaryrefslogtreecommitdiff
path: root/themes/terrassa/layouts/_default
diff options
context:
space:
mode:
Diffstat (limited to 'themes/terrassa/layouts/_default')
-rw-r--r--themes/terrassa/layouts/_default/list.html12
-rw-r--r--themes/terrassa/layouts/_default/single.html6
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">