Initial commit: Rapport Website (Hugo + Hextra)
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
{{- /*
|
||||
Shortcode to include a PDF file in a page.
|
||||
|
||||
@param {string} 0 The path to the PDF file.
|
||||
|
||||
@example {{< pdf "path/to/file.pdf" >}}
|
||||
*/ -}}
|
||||
|
||||
{{- $path := .Get 0 -}}
|
||||
{{- $url := partial "utils/file-path" (dict "page" .Page "path" $path) -}}
|
||||
|
||||
|
||||
<div class="hextra-pdf">
|
||||
<iframe src="{{ $url | safeURL }}" width="100%" style="min-height: 32rem;" frameborder="0" title="{{ (T "pdfViewer") | default "PDF viewer" }}"></iframe>
|
||||
</div>
|
||||
Reference in New Issue
Block a user