From 180471112e2ccc50150a90cab1684f70ea635390 Mon Sep 17 00:00:00 2001
From: Patrick Kollitsch <patrick@davids-neighbour.com>
Date: Mon, 10 Mar 2025 09:29:18 +0000
Subject: [PATCH] refactor: move all template methods to proper GoHugo methods
---
layouts/_default/terms.html | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html
index 093bb53..0385ba4 100644
--- a/layouts/_default/terms.html
+++ b/layouts/_default/terms.html
@@ -1,7 +1,7 @@
{{ define "main" }}
{{ $data := .Data }}
<article class="cf pa3 pa4-m pa4-l">
- <div class="measure-wide-l center f4 lh-copy nested-copy-line-height nested-links {{ $.Param "text_color" | default "mid-gray" }}">
+ <div class="measure-wide-l center f4 lh-copy nested-copy-line-height nested-links {{ $.Param "text_color" | compare.Default "mid-gray" }}">
{{ .Content }}
</div>
</article>
@@ -10,7 +10,7 @@
{{ range $term := .Data.Pages }}
<h2 class="f1">
<a href="{{ $term.RelPermalink }}" class="link blue hover-black">
- {{ $.Data.Singular | humanize }}: {{ $term.LinkTitle }}
+ {{ $.Data.Singular | inflect.Humanize }}: {{ $term.LinkTitle }}
</a>
</h2>
{{ range $term.Pages }}
--
Gitblit v1.10.0