Convert docdock theme from submodule to native files and fix Hugo compatibility
This commit is contained in:
7
themes/docdock/layouts/shortcodes/alert.html
Normal file
7
themes/docdock/layouts/shortcodes/alert.html
Normal file
@@ -0,0 +1,7 @@
|
||||
{{ $_hugo_config := `{ "version": 1 }` }}
|
||||
<div class="alert{{- " " -}}{{- if .IsNamedParams -}}
|
||||
{{- with .Get "theme" -}}alert-{{.}}{{- else -}}alert-info{{- end -}}
|
||||
{{- else -}}
|
||||
{{- with .Get 0 -}}alert-{{.}}{{- else -}}alert-info{{- end -}}
|
||||
{{- end -}}
|
||||
" role="alert">{{- .Inner -}}</div>
|
||||
Reference in New Issue
Block a user