Convert docdock theme from submodule to native files and fix Hugo compatibility
This commit is contained in:
10
themes/docdock/layouts/shortcodes/info.html
Normal file
10
themes/docdock/layouts/shortcodes/info.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<!-- Alert -->
|
||||
{{- if .Get "title" -}}
|
||||
<div class="panel panel-primary panel-info">
|
||||
{{ with .Get "title" }}<div class="panel-heading">{{htmlUnescape .}}</div>{{end}}
|
||||
<div class="panel-body">{{.Inner}}</div>
|
||||
</div>
|
||||
{{- else -}}
|
||||
<div class="alert alert-info" role="alert">{{.Inner}}</div>
|
||||
{{- end -}}
|
||||
<!-- Alert -->
|
||||
Reference in New Issue
Block a user