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 }}
|
{{ .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",
|
||||||
|
|
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