diff options
Diffstat (limited to 'themes/default/layouts/shortcodes/pdf.html')
-rw-r--r-- | themes/default/layouts/shortcodes/pdf.html | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/themes/default/layouts/shortcodes/pdf.html b/themes/default/layouts/shortcodes/pdf.html index 824169b..6c627b5 100644 --- a/themes/default/layouts/shortcodes/pdf.html +++ b/themes/default/layouts/shortcodes/pdf.html @@ -2,10 +2,12 @@ {{- $title := default "PDF Document" (.Get "title" | default (.Get 1)) -}} {{- $caption := default (print $title " ([Download](" $url "))") (.Get "caption" | default (.Get 2)) -}} -<pdf-container title="{{ $title }}"> - <iframe loading="lazy" - sandbox="allow-scripts allow-presentation allow-same-origin" - src="https://docs.google.com/gview?url={{ $url }}&embedded=true"> - </iframe> +<portable-document title="{{ $title }}"> + <object type="application/pdf" data="{{ $url }}"> + <p> + Your browser does not support a <code>PDF</code> (Portable Document Format) + plugin. Here's a <a href="{{ $url }}">link to the PDF file</a> instead. + </p> + </object> <footer>{{ $caption | markdownify }}</footer> -</pdf-container> +</portable-document> |