Skip to content

Commit

Permalink
add pdf shortcode
Browse files Browse the repository at this point in the history
  • Loading branch information
abwildan committed Jun 6, 2024
1 parent 193a992 commit 1aafee6
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions content/post/postingan-pertama.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ Halo! Ini adalah teks **tebal**, dan ini adalah teks *miring*.

Tutorial belajar Hugo bisa langsung ke website [Hugo](https://gohugo.io) ya!

{{< pdf "/teachlikefinland.pdf" >}}
1 change: 1 addition & 0 deletions public/post/postingan-pertama/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ <h1 class="post-title entry-hint-parent">
<div class="post-content"><h2 id="pengenalan">Pengenalan<a hidden class="anchor" aria-hidden="true" href="#pengenalan">#</a></h2>
<p>Halo! Ini adalah teks <strong>tebal</strong>, dan ini adalah teks <em>miring</em>.</p>
<p>Tutorial belajar Hugo bisa langsung ke website <a href="https://gohugo.io">Hugo</a> ya!</p>
<iframe src="/teachlikefinland.pdf" width="100%" height="800px"></iframe>


</div>
Expand Down
Binary file added public/teachlikefinland.pdf
Binary file not shown.
Binary file added static/teachlikefinland.pdf
Binary file not shown.
1 change: 1 addition & 0 deletions themes/papermod/layouts/shortcodes/pdf.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<iframe src="{{ .Get 0 }}" width="100%" height="800px"></iframe>

0 comments on commit 1aafee6

Please sign in to comment.