Hugo shortcodes With embed gist
- create
layouts/shortcodes
folder if not exists - add gist.html and past follow code below
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
<script type="text/javascript" src="http://gist.github.com/{{ .Get 0 }}.js"></script>
then you can use it in your .md file by {{< gist embedhash >}}
Reference
發佈時間
2018-12-29