hugolib: Add shortcode for Instagram

This commit is contained in:
Victor Kropp authored and Bjørn Erik Pedersen committed 2016-11-23 20:28:42 +01:00
1 parent 955d18a0c4
commit 013ab717ec
1 file changed
+13
+13
View File
@@ -225,6 +225,19 @@ Extract the value from the field `data-id` and pass it to the shortcode:
{{</* speakerdeck 4e8126e72d853c0060001f97 */>}}
### Instagram
If you'd like to embed photo from [Instagram](https://www.instagram.com/), all you need is photo ID from the URL, e. g.:
* https://www.instagram.com/p/BMokmydjG-M/
Pass it to the shortcode:
{{</* instagram BMokmydjG-M */>}}
Optionally, hide caption:
{{</* instagram BMokmydjG-M hidecaption */>}}
## Creating your own shortcodes