Added PDF embed shortcode

This commit is contained in:
Brandon Rozek 2022-05-02 00:04:58 -04:00
parent 6f7b7bb270
commit 0e6b601703
2 changed files with 3 additions and 0 deletions

View file

@ -24,6 +24,7 @@
{{ .Content }} {{ .Content }}
</div> </div>
</article> </article>
<!-- Webmentions -->
<div id="webmentions"></div> <div id="webmentions"></div>
<form method="post" action="https://webmention.io/brandonrozek.com/webmention"> <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> <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> </form>
{{ $webmentionjs := resources.Get "js/webmention.min.js" }} {{ $webmentionjs := resources.Get "js/webmention.min.js" }}
<script src="{{ $webmentionjs.Permalink }}" async></script> <script src="{{ $webmentionjs.Permalink }}" async></script>
<!-- Metadata -->
<script type="application/ld+json"> <script type="application/ld+json">
{ {
"@context": "https://schema.org", "@context": "https://schema.org",

View file

@ -0,0 +1 @@
<embed height=500 width="100%" src="{{ .Get 0 }}" type="application/pdf"></embed>