From af2e18f5093c38d62c1fe86985bcb3c3319ee6d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix-Antoine=20Fortin?= Date: Fri, 24 May 2024 16:37:03 -0400 Subject: [PATCH] Render url with .md to correct link (#246) * Render url with .md to correct link * Fix external link issue * Update render-link.html --------- Co-authored-by: Chris Holdgraf --- layouts/_default/_markup/render-link.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/layouts/_default/_markup/render-link.html b/layouts/_default/_markup/render-link.html index 6b352e5f0..f9d764769 100644 --- a/layouts/_default/_markup/render-link.html +++ b/layouts/_default/_markup/render-link.html @@ -5,4 +5,6 @@ {{ $title = replace $title "https://github.com/" "" }} {{ $title = replace $title "/issues/" "#" }} {{ $title = replace $title "/pull/" "#" }} -{{ $title | safeHTML }} + +// This is a custom link resolver that resolves both internal and external links, thanks to @cmd-ntrf for the helpful fix. +{{ $title | safeHTML }}