Skip to content

Commit 6dc69b3

Browse files
committed
List: Change to readFile
1 parent 52e069b commit 6dc69b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

layouts/partials/banner.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
{{- if and (ge $currentDate $startDate) (le $currentDate $endDate) -}}
1010
{{- if isset . "md" -}}
1111
<!-- Show markdown if "md" is provided -->
12-
{{- $bannerPage := site.GetPage .md -}}
12+
{{- $bannerPage := readFile .md -}}
1313
<div class="banner banner-{{ .type }}">
14-
{{ $bannerPage.Content }}
14+
{{ $bannerPage | markdownify }}
1515
</div>
1616
{{- else -}}
1717
<!-- Show error to writers if "md" is NOT provided -->

0 commit comments

Comments
 (0)