diff options
author | zwbetz-gh <zwbetz@gmail.com> | 2021-03-29 06:18:56 +0300 |
---|---|---|
committer | zwbetz-gh <zwbetz@gmail.com> | 2021-03-29 06:18:56 +0300 |
commit | 699a752a936089db3afc25e3cb1f752d56305601 (patch) | |
tree | 5fd194f4364f7d49b73c6bf33d93cf0966202e6f /exampleSite | |
parent | 573b3dd0be2a4af66437e03ed8b7c149d202acb1 (diff) |
render markdown in shortcodes
Diffstat (limited to 'exampleSite')
-rw-r--r-- | exampleSite/config.toml | 44 | ||||
-rw-r--r-- | exampleSite/content/post/papercss-shortcodes/index.md | 40 |
2 files changed, 40 insertions, 44 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml deleted file mode 100644 index a9a2bf2..0000000 --- a/exampleSite/config.toml +++ /dev/null @@ -1,44 +0,0 @@ -baseURL = "https://example.com" -languageCode = "en-us" -defaultContentLanguage = "en" -title = "PaperCSS" -theme = "papercss-hugo-theme" -googleAnalytics = "UA-123456789-1" -disqusShortname = "yourdiscussshortname" - -[privacy] - [privacy.disqus] - disable = true - -[taxonomies] - tag = "tags" - -[permalinks] - post = "/:filename/" - -[imaging] - quality = 99 - -[params] - homeMetaContent = "A Hugo theme made with PaperCSS, the less formal CSS framework." - # For more date formats see https://gohugo.io/functions/format/ - dateFormat = "Jan 2, 2006" - navTitleLink = "/" - -[menu] - [[menu.nav]] - name = "Blog" - url = "/" - weight = 1 - [[menu.nav]] - name = "Tags" - url = "/tags/" - weight = 2 - [[menu.nav]] - name = "About" - url = "/about/" - weight = 3 - [[menu.nav]] - name = "RSS" - url = "/index.xml" - weight = 4 diff --git a/exampleSite/content/post/papercss-shortcodes/index.md b/exampleSite/content/post/papercss-shortcodes/index.md index fb58740..b279301 100644 --- a/exampleSite/content/post/papercss-shortcodes/index.md +++ b/exampleSite/content/post/papercss-shortcodes/index.md @@ -242,3 +242,43 @@ options="900x" title="The Sun" subtitle="It's the Sun, dude" text="The Sun is the star at the center of the Solar System. It is a nearly perfect sphere of hot plasma, with internal convective motion that generates a magnetic field via a dynamo process. It is by far the most important source of energy for life on Earth. [Credits](https://images.nasa.gov/details-GSFC_20171208_Archive_e000393.html)." >}} + +## With Markdown + +``` +{{</* border */>}} +[link](https://gohugo.io/functions/markdownify/), **bold**, _italic_ +{{</* /border */>}} + +{{</* color "success" */>}} +[link](https://gohugo.io/functions/markdownify/), **bold**, _italic_ +{{</* /color */>}} + +{{</* background "success" */>}} +[link](https://gohugo.io/functions/markdownify/), **bold**, _italic_ +{{</* /background */>}} + +{{</* alert "success" */>}} +[link](https://gohugo.io/functions/markdownify/), **bold**, _italic_ +{{</* /alert */>}} + +<h3>Example badge {{</* badge "success" */>}}[link](https://gohugo.io/functions/markdownify/), **bold**, _italic_{{</* /badge */>}}</h3> +``` + +{{< border >}} +[link](https://gohugo.io/functions/markdownify/), **bold**, _italic_ +{{< /border >}} + +{{< color "success" >}} +[link](https://gohugo.io/functions/markdownify/), **bold**, _italic_ +{{< /color >}} + +{{< background "success" >}} +[link](https://gohugo.io/functions/markdownify/), **bold**, _italic_ +{{< /background >}} + +{{< alert "success" >}} +[link](https://gohugo.io/functions/markdownify/), **bold**, _italic_ +{{< /alert >}} + +<h3>Example badge {{< badge "success" >}}[link](https://gohugo.io/functions/markdownify/), **bold**, _italic_{{< /badge >}}</h3> |