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

shortcodes.md « post « content « exampleSite - github.com/7ma7X/HugoTeX.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 46f31f50dd5384d8bca5092778c60cd306020438 (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
+++
title = "Shortcodes"
description = "A description of theme-specific shortcodes"
date = "2019-02-28"
author = "Hugo Authors"
+++

## Sidenotes

[LaTeX.css](https://latex.vercel.app/), which HugoTeX is using, defines syntax for sidenotes. However, as it is a little verbose to write, we provide a Hugo shortcode for that:

```md
# The content

A sentence, which deserves a sidenote.{{% sidenote %}}The content of the note.{{% /sidenote %}}.
```

Will render into

---
# The content

A sentence, which deserves a sidenote. {% sidenote %}} The content of the note. {{% /sidenote %}}.

---