Skip to content

Commit ab547ea

Browse files
committed
List: Changed to use callout partial in banner partial
1 parent 267fb49 commit ab547ea

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

layouts/_default/list.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<h1>{{ .Title }}</h1>
3232
{{ .Content }}
3333

34-
{{ partial "banner" .}}
34+
{{ partial "banner" . }}
3535

3636
{{ if (lt .WordCount 1) }}
3737
{{ range .Pages.ByWeight }}

layouts/shortcodes/banner.html

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{{- $type := .Get 0 | default (.Get "type") | default "" -}}
22
{{- $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>
3+
{{ partial "callout.html" (dict
4+
"class" $type
5+
"title" $title
6+
"icon" "fa-solid fa-triangle-exclamation"
7+
"inline" true
8+
"content" .Inner
9+
) }}

0 commit comments

Comments
 (0)