-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: remove pos pdf and add content (#1012)
- Loading branch information
1 parent
a7d029d
commit 001fdda
Showing
2 changed files
with
16 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,13 @@ | ||
{{ if not (.Page.Scratch.Get "panzoom") }} | ||
<!-- Include mermaid only first time --> | ||
<!-- <script src='https://unpkg.com/panzoom@9.2.4/dist/panzoom.min.js'></script> --> | ||
<script src="https://unpkg.com/d3-zoomable@1.1.3/dist/d3-zoomable.min.js"></script> | ||
{{ .Page.Scratch.Set "panzoom" true }} | ||
{{ end }} | ||
|
||
{{ if (.Get "src") }} | ||
{{- if (.Get "src") -}} | ||
<object data='{{- .Get "src" -}}#pagemode=thumbs&toolbar=1&statusbar=1&messages=1&navpanes=1' | ||
type='application/pdf' | ||
width='100%' | ||
height='500px'> | ||
<p>This browser does not support inline PDFs. Please download the PDF to view it: <a href="{{- .Get "src" -}}">Download {{ .Get "title" }} PDF</a></p> | ||
</object> | ||
{{ else }} | ||
{{- else -}} | ||
<blockquote class="book-hint danger"> | ||
{{- printf "File '%s' not found from Page '%s'" ($.Scratch.Get "filepath") .Page.File }} | ||
</blockquote> | ||
{{- warnf "File '%s' not found from Page '%s'" ($.Scratch.Get "filepath") .Page.File }} | ||
{{ end }} | ||
{{- end -}} |