From 9bb9989fca490bfac69ea4387ccae1e9ec3ec23cf7f47a401e241ee43562f8a3 Mon Sep 17 00:00:00 2001 From: Nicholas Johnson <> Date: Sat, 26 Jul 2025 00:00:00 +0000 Subject: Migrate fully to Hugo's new template system This was the only way I could get term pages to consistently render correctly. --- layouts/_markup/render-image.html | 1 + layouts/_markup/render-link.html | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 layouts/_markup/render-image.html create mode 100644 layouts/_markup/render-link.html (limited to 'layouts/_markup') diff --git a/layouts/_markup/render-image.html b/layouts/_markup/render-image.html new file mode 100644 index 0000000..590c9bf --- /dev/null +++ b/layouts/_markup/render-image.html @@ -0,0 +1 @@ +{{ .Text }} \ No newline at end of file diff --git a/layouts/_markup/render-link.html b/layouts/_markup/render-link.html new file mode 100644 index 0000000..8fb3c26 --- /dev/null +++ b/layouts/_markup/render-link.html @@ -0,0 +1,3 @@ +{{ $emoji := cond (and (not (.Page.Params.makerefs | default true)) (.Page.Params.showlinkemoji | default true)) (emojify ":link: ") "" -}} +{{ $isExternalLink := (urls.Parse .Destination).IsAbs -}} +{{ $emoji }}{{ .Text }} \ No newline at end of file -- cgit v1.2.3