blob: 6c627b52cc94f03110692fe7fa56becd22f3dc54 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
{{- $url := default "https://www.gutenberg.org/files/98/old/2city12p.pdf" (.Get "url" | default (.Get 0)) -}}
{{- $title := default "PDF Document" (.Get "title" | default (.Get 1)) -}}
{{- $caption := default (print $title " ([Download](" $url "))") (.Get "caption" | default (.Get 2)) -}}
<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>
</portable-document>
|