Shortcodes
Introduction of the shortcodes defined in the personal-web theme.
Add a figure
{{< figure src="/post/images/sample_image.jpg"
caption="Photo by Tim Mossholder on Unsplash" >}}
results in
Note: files are kept in a images
folder, directly in the post/portfolio folder.
Add a single Tweet
{{< tweet-single 1120412132036706305 >}}
results in
This generation of climate activists is tired of inaction, and they've caught the attention of leaders all over the world. So while this challenge is only getting more urgent, they show us the kind of action it'll take to meet this moment.
— Barack Obama (@BarackObama) April 22, 2019
This shortcode is useful in case of multiple tweets in a thread. If you want to show a single tweet, use this shortcode, with the ID of the Tweet. The ID is the end of the tweet link.
For example:
https://twitter.com/BarackObama/status/1120412132036706305