darkmode = true # set true if you want to enforce dark mode
# lightmode = true # set true if you want to enforce light mode
```
**By default, dark mode is automatically enabled based on `prefers-color-scheme` media query. If you want to enforce or deactivate this setting, set `darkmode=true` or `lightmode=true` in [Params]**
### Social media
If you want to enable the generation of Twitter Card or Opengraph `meta` tags so you get nice embeds on Twitter, Facebook and other social media sites, add the following:
```toml
[Params]
twittercard = true
opengraph = true
```
See the [Internal Templates](https://gohugo.io/templates/internal/) in Hugo for how to configure this behaviour further.
## Shortcodes
### 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:
```
A sentence deserving a sidenote.{{% sidenote %}}The note itself.{{% /sidenote %}}.
```
The note will be displayed on the right margin on larger screens. On smaller screns the note will be hidden by default and will open when clicking on the superscript number marking the existence of the note.