forked from matcornic/hugo-theme-learn
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(shortcode): Fix markdown render in alert and excerpt
- Loading branch information
Marthym
committed
Oct 13, 2019
1 parent
9e7631c
commit 8931da2
Showing
2 changed files
with
5 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{{ $_hugo_config := `{ "version": 1 }` }} | ||
<div class="alert{{- " " -}}{{- if .IsNamedParams -}} | ||
{{- with .Get "theme" -}}alert-{{.}}{{- else -}}alert-info{{- end -}}" | ||
{{- with .Get "theme" -}}alert-{{.}}{{- else -}}alert-info{{- end -}} | ||
{{- else -}} | ||
{{- with .Get 0 -}}alert-{{.}}{{- else -}}alert-info{{- end -}}" | ||
{{- with .Get 0 -}}alert-{{.}}{{- else -}}alert-info{{- end -}} | ||
{{- end -}} | ||
role="alert">{{- .Inner -}}</div> | ||
" role="alert">{{- .Inner -}}</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters