Skip to content

Commit b86c216

Browse files
authored
Refactored class name based off type for banner (#306)
* Banner: Refactored class name based off type * Banner: Fix spacing
1 parent a8044d5 commit b86c216

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

layouts/partials/banner.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
{{- if isset . "md" -}}
1111
<!-- Show markdown if "md" is provided -->
1212
{{- $bannerPage := readFile .md -}}
13-
<div class="banner banner-{{ .type }}">
13+
<div class="banner{{ if .type }} banner-{{ .type }}{{ end }}">
1414
{{ $bannerPage | markdownify }}
1515
</div>
1616
{{- else -}}

0 commit comments

Comments
 (0)