modified shortcodes, archaetypes and documents

This commit is contained in:
2023-06-13 20:07:02 +09:00
parent f69c693257
commit 4b41b4bbd3
7 changed files with 137 additions and 7 deletions

View File

@ -0,0 +1,17 @@
{{ $target := "" }}
{{with .Page.Resources.GetMatch "*.pdf"}}
{{ $target = . }}
{{end}}
{{with .Page.Params.pdf_path}}
{{ $target = . }}
{{end}}
{{ with index .Params 0 }}
{{ $target = . }}
{{ end }}
<embed src = {{$target}} type="application/pdf" style = "width:100%;min-height:300px;aspect-ratio: 16/10;" />