Skip to content

Commit

Permalink
fix(shortcode): Fix markdown render in alert and excerpt
Browse files Browse the repository at this point in the history
  • Loading branch information
Marthym committed Oct 13, 2019
1 parent 9e7631c commit 8931da2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions layouts/shortcodes/alert.html
@@ -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>
1 change: 1 addition & 0 deletions layouts/shortcodes/excerpt-include.html
@@ -1,3 +1,4 @@
{{ $_hugo_config := `{ "version": 1 }` }}
{{ $excerpt := findRE "(?ms){{%\\s*excerpt[^%]*%}}(.|\n)*?{{%\\s*/excerpt\\s*%}}" ( readFile (printf "./content/%s" (.Get "filename")) ) }}
{{ range $excerpt }}
{{if ($.Get "panel")}}
Expand Down

0 comments on commit 8931da2

Please sign in to comment.