From 26f0a266ec040ce9e9abfdf1804d2e670c2982c1 Mon Sep 17 00:00:00 2001 From: Kumi Date: Tue, 23 Jul 2024 11:16:05 +0200 Subject: [PATCH] feat: add custom link renderer for improved URL handling Introduced a custom link renderer in the default layout to create links with enhanced URL safety and behavior. Links now open in a new tab if they start with "http", and include a title attribute if provided. This ensures better user experience and security. --- layouts/_default/_markup/render-link.html | 1 + 1 file changed, 1 insertion(+) create mode 100644 layouts/_default/_markup/render-link.html diff --git a/layouts/_default/_markup/render-link.html b/layouts/_default/_markup/render-link.html new file mode 100644 index 0000000..a5cd49a --- /dev/null +++ b/layouts/_default/_markup/render-link.html @@ -0,0 +1 @@ +{{ .Text | safeHTML }} \ No newline at end of file