Welcome to mirror list, hosted at ThFree Co, Russian Federation.

shortcodes.md « post « content « exampleSite - github.com/bjacquemet/personal-web.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 28e7fc796de5fed2edbfd5348b9eafa721b766cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
title: Shortcodes
description: Exaplanation on the shortcodes with personal-web
date: 2019-04-29T16:18:12+01:00
publishDate: 2019-04-29T19:12:12+01:00
---

Introduction of the shortcodes defined in the personal-web theme.

<!--more-->

## Add a figure
```go-html-template
{{</* figure src="/post/images/sample_image.jpg" 
caption="Photo by Tim Mossholder on Unsplash" */>}}
```

results in

{{< figure src="/post/images/sample_image.jpg" caption="Photo by Tim Mossholder on Unsplash" >}}

**Note:** files are kept in a `images` folder, directly in the post/portfolio folder.


## Add a single Tweet
```go-html-template
{{</* tweet-single 1120412132036706305 */>}}
```

results in
{{< tweet-single 1120412132036706305 >}}

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://<span></span>twitter.com/BarackObama/status/**1120412132036706305**