Skip to content

Commit

Permalink
proper indentation for alert shortcode in markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
deining committed Dec 18, 2023
1 parent 61eb075 commit c722dfc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions layouts/shortcodes/alert.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{{ $color := .Get "color" | default "primary" -}}

<div class="alert alert-{{ $color }}" role="alert">
{{ with .Get "title" -}}
{{- with .Get "title" -}}
<div class="h4 alert-heading">
{{- . | safeHTML -}}
</div>
{{- end -}}
{{/* Do **not** remove this comment! It ends the previous HTML block; see https://spec.commonmark.org/0.30/#html-blocks, 7. */}}
{{ .Inner }}
{{- end -}}
{{ .Inner -}}
</div>

0 comments on commit c722dfc

Please sign in to comment.