Convert docdock theme from submodule to native files and fix Hugo compatibility
This commit is contained in:
6
themes/docdock/layouts/shortcodes/panel.html
Normal file
6
themes/docdock/layouts/shortcodes/panel.html
Normal file
@@ -0,0 +1,6 @@
|
||||
{{ $_hugo_config := `{ "version": 1 }` }}
|
||||
<div class="panel {{with .Get "theme" }}panel-{{.}}{{else}}panel-primary{{end}}">
|
||||
{{- with .Get "header" -}}<div class="panel-heading">{{- htmlUnescape . | markdownify -}}</div>{{- end -}}
|
||||
<div class="panel-body">{{- .Inner -}}</div>
|
||||
{{- with .Get "footer" -}}<div class="panel-footer">{{- htmlUnescape . | markdownify -}}</div>{{- end -}}
|
||||
</div>
|
||||
Reference in New Issue
Block a user