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}}