diff --git a/exampleSite/content/post/getting-started.md b/exampleSite/content/post/getting-started.md index c884457f..5a78f835 100644 --- a/exampleSite/content/post/getting-started.md +++ b/exampleSite/content/post/getting-started.md @@ -73,7 +73,9 @@ Edit your biography in the *about* widget `content/home/about.md` that you copie Each widget is responsible for a section on the homepage and contains further parameters that can be edited as desired. The parameters can be found in the preamble/frontmatter (between the pair of `+++`) for each widget located in the `content/home/` folder. +{{% alert note %}} By default, publications will be displayed in a simple list. If you prefer a more detailed list with abstract and image, you can enable the detailed publication list on the homepage by setting `detailed_list = true` in `content/home/publications.md`. +{{% /alert %}} ### Add your content diff --git a/exampleSite/content/post/writing-markdown-latex.md b/exampleSite/content/post/writing-markdown-latex.md index 3d674b67..cc2b6c15 100644 --- a/exampleSite/content/post/writing-markdown-latex.md +++ b/exampleSite/content/post/writing-markdown-latex.md @@ -6,7 +6,7 @@ title = "Writing content with Markdown, LaTeX, and Shortcodes" math = true +++ -Content can be written using [Markdown](https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet), [LaTeX math](https://en.wikibooks.org/wiki/LaTeX/Mathematics), and [Hugo Shortcodes](http://gohugo.io/extras/shortcodes/). Additionally, HTML may be used for advanced formatting. +Content can be written using [Markdown](https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet), [LaTeX math](https://en.wikibooks.org/wiki/LaTeX/Mathematics), and [Hugo Shortcodes](http://gohugo.io/extras/shortcodes/). Additionally, HTML may be used for advanced formatting. This article gives an overview of the most common formatting options. ## Sub-headings @@ -132,3 +132,28 @@ Result: | ------------------| ------------------------------ | | `hugo` | Build your website. | | `hugo serve -w` | View your website. | + + +## Alerts + +Alerts are a useful feature that add side content such as tips, notes, or warnings to your articles. They are especially handy when writing educational tutorial-style articles. Use the corresponding shortcodes to enable alerts inside your content: + + {{%/* alert note */%}} + Here's a tip or note... + {{%/* /alert */%}} + +This will display the following *note* block: + +{{% alert note %}} +Here's a tip or note... +{{% /alert %}} + + {{%/* alert warning */%}} + Here's some important information... + {{%/* /alert */%}} + +This will display the following *warning* block: + +{{% alert warning %}} +Here's some important information... +{{% /alert %}} diff --git a/layouts/shortcodes/alert.html b/layouts/shortcodes/alert.html new file mode 100644 index 00000000..b93b95cf --- /dev/null +++ b/layouts/shortcodes/alert.html @@ -0,0 +1,3 @@ +