From c9e0c96901c8754c974eaf93cef9aba5b8505abf Mon Sep 17 00:00:00 2001 From: Rishav Singh <70544726+rishav-singh-0@users.noreply.github.com> Date: Tue, 26 Nov 2024 00:01:50 +0530 Subject: [PATCH] fix: Static files are now visible in pages --- .../_default/_markup/render-image.html | 19 +++++++++++++++++++ .../layouts/_default/_markup/render-link.html | 18 ++++++++++++++++++ vault | 2 +- 3 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 hugo_root/layouts/_default/_markup/render-image.html create mode 100644 hugo_root/layouts/_default/_markup/render-link.html diff --git a/hugo_root/layouts/_default/_markup/render-image.html b/hugo_root/layouts/_default/_markup/render-image.html new file mode 100644 index 0000000..10cc850 --- /dev/null +++ b/hugo_root/layouts/_default/_markup/render-image.html @@ -0,0 +1,19 @@ +{{- $url := urls.Parse .Destination -}} +{{- $scheme := $url.Scheme -}} + +{{ . | safeHTML }} + +{{- /* whitespace stripped here to avoid trailing newline in rendered result caused by file EOL */ -}} diff --git a/hugo_root/layouts/_default/_markup/render-link.html b/hugo_root/layouts/_default/_markup/render-link.html new file mode 100644 index 0000000..9d43b5e --- /dev/null +++ b/hugo_root/layouts/_default/_markup/render-link.html @@ -0,0 +1,18 @@ +{{- $url := urls.Parse .Destination -}} +{{- $scheme := $url.Scheme -}} + + + {{- .Text | safeHTML -}} + + +{{- /* whitespace stripped here to avoid trailing newline in rendered result caused by file EOL */ -}} diff --git a/vault b/vault index dfa113c..96c2977 160000 --- a/vault +++ b/vault @@ -1 +1 @@ -Subproject commit dfa113cac7e31e139159a038ffadc879c3bd8bd6 +Subproject commit 96c2977b81eca931ce01f1f6e6b11d152efd3fac