mirror of
https://github.com/Brandon-Rozek/website-theme.git
synced 2024-11-21 15:56:29 -05:00
Added PDF embed shortcode
This commit is contained in:
parent
6f7b7bb270
commit
0e6b601703
2 changed files with 3 additions and 0 deletions
|
@ -24,6 +24,7 @@
|
|||
{{ .Content }}
|
||||
</div>
|
||||
</article>
|
||||
<!-- Webmentions -->
|
||||
<div id="webmentions"></div>
|
||||
<form method="post" action="https://webmention.io/brandonrozek.com/webmention">
|
||||
<p>Have you published a response to this? <label for="webmention-source">Let me know the <abbr title="Uniform Resource Locator">URL</abbr></label>:</p>
|
||||
|
@ -33,6 +34,7 @@
|
|||
</form>
|
||||
{{ $webmentionjs := resources.Get "js/webmention.min.js" }}
|
||||
<script src="{{ $webmentionjs.Permalink }}" async></script>
|
||||
<!-- Metadata -->
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
|
|
1
layouts/shortcodes/pdfembed.html
Normal file
1
layouts/shortcodes/pdfembed.html
Normal file
|
@ -0,0 +1 @@
|
|||
<embed height=500 width="100%" src="{{ .Get 0 }}" type="application/pdf"></embed>
|
Loading…
Reference in a new issue