diff options
author | eeriksp <eerik.sven@gmail.com> | 2021-06-21 12:16:15 +0300 |
---|---|---|
committer | eeriksp <eerik.sven@gmail.com> | 2021-06-21 12:16:15 +0300 |
commit | 9d4e56d030e37c8127c0d1395ae3fbb84bc59f53 (patch) | |
tree | 0cfb34da067ba32539dc7ca51e4428a981d2ab73 | |
parent | 354a92109e64359a366bb019e34c39b9e276b59f (diff) |
Working to sidenotes shortcode
-rw-r--r-- | exampleSite/config.toml | 7 | ||||
-rw-r--r-- | exampleSite/content/post/shortcodes.md | 10 |
2 files changed, 9 insertions, 8 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml index f5568f5..9d91525 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -13,4 +13,9 @@ footnoteReturnLinkContents = "^" [taxonomies] category = "categories" tag = "tags" -series = "series"
\ No newline at end of file +series = "series" + +[markup] + [markup.goldmark] + [markup.goldmark.renderer] + unsafe = true diff --git a/exampleSite/content/post/shortcodes.md b/exampleSite/content/post/shortcodes.md index 46f31f5..37fe8e0 100644 --- a/exampleSite/content/post/shortcodes.md +++ b/exampleSite/content/post/shortcodes.md @@ -1,7 +1,7 @@ +++ title = "Shortcodes" description = "A description of theme-specific shortcodes" -date = "2019-02-28" +date = "2021-06-21" author = "Hugo Authors" +++ @@ -10,16 +10,12 @@ author = "Hugo Authors" [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 %}}. +A sentence deserving a sidenote.{{%/* sidenote */%}}The note itself.{{%/* /sidenote */%}}. ``` Will render into --- -# The content - -A sentence, which deserves a sidenote. {% sidenote %}} The content of the note. {{% /sidenote %}}. +A sentence deserving a sidenote.{{% sidenote %}}The note itself.{{% /sidenote %}}. ---
\ No newline at end of file |