diff --git a/exampleSite/content/post/shortcodes.md b/exampleSite/content/post/shortcodes.md index b103e6b..c6be592 100644 --- a/exampleSite/content/post/shortcodes.md +++ b/exampleSite/content/post/shortcodes.md @@ -44,10 +44,10 @@ url: "post/shortcodes.html" # 信息块 -支持 `default`,`info`,`success`,`warning`,`danger` 等五种不同效果的信息块展示,语法参考如下: +支持 `default`,`info`,`success`,`warning`,`danger` 等五种不同效果的展示,语法参考如下: ```markdown -{{}} +{{}} 书写表达的信息 支持 Markdown 语法 {{}} @@ -55,6 +55,16 @@ url: "post/shortcodes.html" 实际效果: +{{< note default no-icon >}} + ### Default Header without icon + **Welcome** to [Hugo NexT!](https://preview.hugo-next.eu.org) +{{< /note >}} + +{{< note default >}} + ### Default Header + **Welcome** to [Hugo NexT!](https://preview.hugo-next.eu.org) +{{< /note >}} + {{< note info >}} ### Info Header **Welcome** to [Hugo NexT!](https://preview.hugo-next.eu.org) diff --git a/layouts/shortcodes/note.html b/layouts/shortcodes/note.html index 6f15f99..a6d19e1 100644 --- a/layouts/shortcodes/note.html +++ b/layouts/shortcodes/note.html @@ -1,3 +1,3 @@ -
+
{{ .Inner | markdownify }}
\ No newline at end of file