Fix to support Hugo 0.55.0 and later
This commit is contained in:
@@ -23,15 +23,15 @@ This components comes with english, french and german localizations for the noti
|
||||
```
|
||||
3. In your site, use the shortcode, this way:
|
||||
```go
|
||||
{{% notice warning %}}
|
||||
{{< notice warning >}}
|
||||
This is a warning notice. Be warned!
|
||||
{{% /notice %}}
|
||||
{{< /notice >}}
|
||||
```
|
||||
or
|
||||
```go
|
||||
{{% notice tip %}}
|
||||
{{< notice tip >}}
|
||||
This is a very good tip.
|
||||
{{% /notice %}}
|
||||
{{< /notice >}}
|
||||
```
|
||||
|
||||
### Credits
|
||||
|
||||
@@ -7,5 +7,5 @@
|
||||
{{- $.Page.Scratch.Add "noticecount" 1 -}}
|
||||
<div class="notice {{ $noticeType }}" {{ if len .Params | eq 2 }} id="{{ .Get 1 }}" {{ end }}>
|
||||
<p class="first notice-title">{{- i18n $noticeType -}}</p>
|
||||
{{- .Inner -}}
|
||||
{{- .Inner | markdownify -}}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user