💄 Make note short code support without icon style.

This commit is contained in:
凡梦星尘 2022-08-09 09:37:59 +08:00
parent b739434f8d
commit d3eb723e24
2 changed files with 13 additions and 3 deletions

View File

@ -44,10 +44,10 @@ url: "post/shortcodes.html"
# 信息块 # 信息块
支持 `default``info``success``warning``danger` 等五种不同效果的信息块展示,语法参考如下: 支持 `default``info``success``warning``danger` 等五种不同效果的展示,语法参考如下:
```markdown ```markdown
{{</* note [class] */>}} {{</* note [class] [no-icon] */>}}
书写表达的信息 书写表达的信息
支持 Markdown 语法 支持 Markdown 语法
{{</* /note */>}} {{</* /note */>}}
@ -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 >}} {{< note info >}}
### Info Header ### Info Header
**Welcome** to [Hugo NexT!](https://preview.hugo-next.eu.org) **Welcome** to [Hugo NexT!](https://preview.hugo-next.eu.org)

View File

@ -1,3 +1,3 @@
<div class="note {{ .Get 0 | default "default" }}"> <div class="note {{ .Get 0 }} {{ .Get 1 }}">
{{ .Inner | markdownify }} {{ .Inner | markdownify }}
</div> </div>