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: 678779041e442736675b8fae187102ec7a8dd695 (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 = "2021-06-21"
author = "Hugo Authors"
+++

Tips for sidenotes.

<!--more-->

## 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
A sentence deserving a sidenote.{{%/* sidenote */%}}The note itself.{{%/* /sidenote */%}}.
```

Will render into

---
A sentence deserving a sidenote.{{% sidenote %}}The note itself.{{% /sidenote %}}.

---