From c30bafa4f69be630469a9158e181309f60155b83 Mon Sep 17 00:00:00 2001 From: eeriksp Date: Fri, 18 Jun 2021 14:10:43 +0300 Subject: Working on documentation --- exampleSite/content/post/shortcodes.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 exampleSite/content/post/shortcodes.md diff --git a/exampleSite/content/post/shortcodes.md b/exampleSite/content/post/shortcodes.md new file mode 100644 index 0000000..46f31f5 --- /dev/null +++ b/exampleSite/content/post/shortcodes.md @@ -0,0 +1,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 %}}. + +--- \ No newline at end of file -- cgit v1.2.3