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:
|
3. In your site, use the shortcode, this way:
|
||||||
```go
|
```go
|
||||||
{{% notice warning %}}
|
{{< notice warning >}}
|
||||||
This is a warning notice. Be warned!
|
This is a warning notice. Be warned!
|
||||||
{{% /notice %}}
|
{{< /notice >}}
|
||||||
```
|
```
|
||||||
or
|
or
|
||||||
```go
|
```go
|
||||||
{{% notice tip %}}
|
{{< notice tip >}}
|
||||||
This is a very good tip.
|
This is a very good tip.
|
||||||
{{% /notice %}}
|
{{< /notice >}}
|
||||||
```
|
```
|
||||||
|
|
||||||
### Credits
|
### Credits
|
||||||
|
|||||||
@@ -7,5 +7,5 @@
|
|||||||
{{- $.Page.Scratch.Add "noticecount" 1 -}}
|
{{- $.Page.Scratch.Add "noticecount" 1 -}}
|
||||||
<div class="notice {{ $noticeType }}" {{ if len .Params | eq 2 }} id="{{ .Get 1 }}" {{ end }}>
|
<div class="notice {{ $noticeType }}" {{ if len .Params | eq 2 }} id="{{ .Get 1 }}" {{ end }}>
|
||||||
<p class="first notice-title">{{- i18n $noticeType -}}</p>
|
<p class="first notice-title">{{- i18n $noticeType -}}</p>
|
||||||
{{- .Inner -}}
|
{{- .Inner | markdownify -}}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user