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 52e069b commit 6dc69b3Copy full SHA for 6dc69b3
layouts/partials/banner.html
@@ -9,9 +9,9 @@
9
{{- if and (ge $currentDate $startDate) (le $currentDate $endDate) -}}
10
{{- if isset . "md" -}}
11
<!-- Show markdown if "md" is provided -->
12
- {{- $bannerPage := site.GetPage .md -}}
+ {{- $bannerPage := readFile .md -}}
13
<div class="banner banner-{{ .type }}">
14
- {{ $bannerPage.Content }}
+ {{ $bannerPage | markdownify }}
15
</div>
16
{{- else -}}
17
<!-- Show error to writers if "md" is NOT provided -->
0 commit comments