File tree Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -33,8 +33,9 @@ <h1>{{ .Title }}</h1>
33
33
34
34
{{- with .Params.banner -}}
35
35
{{- if .enabled -}}
36
+ {{- $bannerPage := site.GetPage .md -}}
36
37
< div class ="banner banner-{{ .type }} ">
37
- {{ partial .md . }}
38
+ {{ $bannerPage.Content }}
38
39
</ div >
39
40
{{- end -}}
40
41
{{- end -}}
Original file line number Diff line number Diff line change @@ -20,8 +20,9 @@ <h1 class="bd-title">
20
20
21
21
{{- with .Params.banner -}}
22
22
{{- if .enabled -}}
23
+ {{- $bannerPage := site.GetPage .md -}}
23
24
< div class ="banner banner-{{ .type }} ">
24
- {{ partial .md . }}
25
+ {{ $bannerPage.Content }}
25
26
</ div >
26
27
{{- end -}}
27
28
{{- end -}}
Original file line number Diff line number Diff line change
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 >
You can’t perform that action at this time.
0 commit comments