From 3702a07d546b6d4b02b4a72f1830f106eaffb52f Mon Sep 17 00:00:00 2001 From: Apoorv Khandelwal Date: Sat, 21 Jan 2023 12:56:34 -0500 Subject: [PATCH] Formatting embed tags --- layouts/partials/textprocessing.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/layouts/partials/textprocessing.html b/layouts/partials/textprocessing.html index 9c7aa3664..c918247bd 100644 --- a/layouts/partials/textprocessing.html +++ b/layouts/partials/textprocessing.html @@ -93,12 +93,13 @@ {{$content = replace $content . $link}} {{else if in ".pdf" $embed_ext }} - {{$link := printf "[source]" $href}} - {{$link := printf "%s
" $link $href}} + {{$src_link := printf "[source]" $href}} + {{$iframe_link := printf "" $href}} + {{$link := printf "%s
%s" $src_link $iframe_link}} {{$content = replace $content . $link}} {{else}} - {{$link := printf "[source]" $href}} + {{$link := printf "%s" $href $href}} {{$content = replace $content . $link}} {{end}} {{else}}