From fd26c84391f9891523ba38ed94a87fe69af61d81 Mon Sep 17 00:00:00 2001
From: weru <fromweru@gmail.com>
Date: Sun, 02 Nov 2025 12:28:16 +0000
Subject: [PATCH] update templates #134

---
 layouts/term.html |   56 ++++++++++++++++++++++++++++++--------------------------
 1 files changed, 30 insertions(+), 26 deletions(-)

diff --git a/layouts/term.html b/layouts/term.html
index 56f9643..73aaabf 100644
--- a/layouts/term.html
+++ b/layouts/term.html
@@ -6,31 +6,35 @@
   {{- $size := $paginator.PagerSize }}
   {{- $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 in $image "https://" }}
-  {{- $bg = $image }}
-  {{- end }}
-  <article class="article mb-2">
-    <a href="{{ $value.Permalink }}" {{ if eq $index 0 }} class=grid-reverse {{ end }}>
-      <div class="article_thumb" style="background-image: url({{ $bg }})"></div>
-      <div class="article_meta {{ if eq $index 0 }} center_y {{ end }}">
-        <div class="post_date">{{ dateFormat "January 02, 2006" $value.Date }}</div>
-        <h3 class="article_title">{{ $value.Title }}</h3>
-        <div class="article_excerpt {{ if eq $index 0 }} visible {{ end }}">
-          <p>{{ $value.Summary | truncate 100 }}</p>
+    {{- if isset .Params "image" }}
+    {{- $scratch.Set "image" .Params.image }}
+    {{- else }}
+    {{- $scratch.Set "image" "thumbnail.svg" }}
+    {{- end }}
+    {{- $image := $scratch.Get "image" }}
+    {{- $bg := absURL $image }}
+    {{- if in $image "https://" }}
+      {{- $bg = $image }}
+    {{- end }}
+    <article class="article mb-2">
+      <a href="{{ $value.Permalink }}" {{ if eq $index 0 }} class=grid-reverse {{ end }}>
+        <div class="article_thumb" style="background-image: url({{ $bg }})"></div>
+        <div class="article_meta {{ if eq $index 0 }} center_y {{ end }}">
+          <div class="post_date">{{ dateFormat "January 02, 2006" $value.Date }}</div>
+          <h3 class="article_title">{{ $value.Title }}</h3>
+          <div class="article_excerpt {{ if eq $index 0 }} visible {{ end }}">
+            <p>{{ truncate 100 .Plain }}</p>
+          </div>
         </div>
-      </div>
-    </a>
-  </article>
-  {{- if and (eq $index 0) (gt $size 1) }}<div class="grid-2 article_showcase">{{ end }}
-    {{- if and (eq $index (add $size -1)) (gt $size 1) }}</div>{{ end }}
-  {{- end }}
+      </a>
+    </article>
+    {{- if and (eq $index 0) (gt $size 1) }}
+    <div class="grid-2 article_showcase">
+    {{ end }}
+    {{- if and (eq $index (add $size -1)) (gt $size 1) }}
+    </div>
+    {{ end }}
+    {{- end }}
+  </div>
 </div>
-</div>
-{{- end -}}
\ No newline at end of file
+{{- end -}}

--
Gitblit v1.10.0