We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 267fb49 commit ab547eaCopy full SHA for ab547ea
layouts/_default/list.html
@@ -31,7 +31,7 @@
31
<h1>{{ .Title }}</h1>
32
{{ .Content }}
33
34
- {{ partial "banner" .}}
+ {{ partial "banner" . }}
35
36
{{ if (lt .WordCount 1) }}
37
{{ range .Pages.ByWeight }}
layouts/shortcodes/banner.html
@@ -1,7 +1,9 @@
1
{{- $type := .Get 0 | default (.Get "type") | default "" -}}
2
{{- $title := .Get 1 | default (.Get "title") | default "" -}}
3
-<blockquote class="{{ $type }}">
4
- <i class="fa-solid fa-triangle-exclamation"></i><strong>{{ $title }}</strong>
5
- <br>
6
- {{- .Inner | markdownify -}}
7
-</blockquote>
+{{ partial "callout.html" (dict
+ "class" $type
+ "title" $title
+ "icon" "fa-solid fa-triangle-exclamation"
+ "inline" true
8
+ "content" .Inner
9
+) }}
0 commit comments