diff options
Diffstat (limited to 'layouts/shortcodes/embedded_pdf.html')
| -rw-r--r-- | layouts/shortcodes/embedded_pdf.html | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/layouts/shortcodes/embedded_pdf.html b/layouts/shortcodes/embedded_pdf.html new file mode 100644 index 0000000..4b066ec --- /dev/null +++ b/layouts/shortcodes/embedded_pdf.html @@ -0,0 +1,13 @@ +<!-- <iframe class="pdf-embed" src="{{ .Get "src" }}" width="{{ .Get "width" }}" height="{{ .Get "height" }}"></iframe> --> +<div class="embed-container"> +<iframe class="pdf-embed embed" src="{{ .Get "src" }}" loading="lazy" +{{ with .Get "name" }} name="{{ . }}" {{ end }} +{{ with .Get "title" }} title="{{ . }}" {{ end }} +{{ with .Get "width" }} width="{{ . }}" {{ end }} +{{ with .Get "height" }} height="{{ . }}" {{ end }}> + <a href="{{ .Get "src" }}">{{ .Get "title" }}</a> +</iframe> +<div class="embed-fallback"> + <a href="{{ .Get "src" }}">{{ .Get "title" }} ↓</a> +</div> +</div> |
