From 3b77b61bf662efe71c7f75e73a2d6fae0e3c8c8b74b05f036809b0913785a432 Mon Sep 17 00:00:00 2001 From: Nicholas Johnson Date: Fri, 8 Nov 2024 00:00:00 +0000 Subject: Replace replaceRE with TrimSuffix for readability --- layouts/partials/metadata.gmi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'layouts/partials/metadata.gmi') diff --git a/layouts/partials/metadata.gmi b/layouts/partials/metadata.gmi index 7f897c3..04749d9 100644 --- a/layouts/partials/metadata.gmi +++ b/layouts/partials/metadata.gmi @@ -1,2 +1,2 @@ {{ partial "pageinfo.gmi" . }} -=> {{ .RelPermalink | replaceRE `index.gmi$` "" }} {{ emojify ":link:" }} {{ .Title }} \ No newline at end of file +=> {{ .RelPermalink | strings.TrimSuffix "index.gmi" }} {{ emojify ":link:" }} {{ .Title }} \ No newline at end of file -- cgit v1.2.3