From ddcd0cdcd38735f15b933099be85446ad5b364d2 Mon Sep 17 00:00:00 2001
From: weru <fromweru@gmail.com>
Date: Sun, 14 Jan 2024 13:18:01 +0000
Subject: [PATCH] edit whitespace #120
---
layouts/_default/term.html | 19 ++++++++++---------
1 files changed, 10 insertions(+), 9 deletions(-)
diff --git a/layouts/_default/term.html b/layouts/_default/term.html
index de6ff3e..ffb2cf3 100644
--- a/layouts/_default/term.html
+++ b/layouts/_default/term.html
@@ -1,18 +1,18 @@
{{ define "main" }}
{{- $pages := .Data.Pages }}
-{{ .Data.Terms }}
+{{- .Data.Terms }}
<div class="wrap pt-2 mt-2">
{{- $paginator := .Paginate $pages -}}
{{- $size := $paginator.PageSize }}
{{- $scratch := newScratch }}
{{- range $index, $value := $paginator.Pages }}
- {{ if isset .Params "image" }}
- {{ $scratch.Set "image" .Params.image }}
- {{ else }}
- {{ $scratch.Set "image" "thumbnail.svg" }}
- {{ end }}
- {{ $image := $scratch.Get "image" }}
- {{ $bg := (absURL (printf "images/%s" $image)) }}
+ {{- if isset .Params "image" }}
+ {{- $scratch.Set "image" .Params.image }}
+ {{- else }}
+ {{- $scratch.Set "image" "thumbnail.svg" }}
+ {{- end }}
+ {{- $image := $scratch.Get "image" }}
+ {{- $bg := (absURL (printf "images/%s" $image)) }}
{{- if in $image "https://" }}
{{- $bg = $image }}
{{- end }}
@@ -32,4 +32,5 @@
{{- if and (eq $index (add $size -1)) (gt $size 1) }}</div>{{ end }}
{{- end }}
</div>
-{{ end }}
+</div>
+{{- end -}}
--
Gitblit v1.10.0