Convert docdock theme from submodule to native files and fix Hugo compatibility
This commit is contained in:
13
themes/docdock/layouts/shortcodes/icon.html
Normal file
13
themes/docdock/layouts/shortcodes/icon.html
Normal file
@@ -0,0 +1,13 @@
|
||||
{{- if .IsNamedParams -}}
|
||||
{{- if not (hasPrefix (.Get "name") "fa-") -}}
|
||||
<span class="glyphicon glyphicon-{{.Get "name"}}" {{with .Get "size"}}style="font-size:{{.}}"{{end}} aria-hidden="true"></span>
|
||||
{{- else -}}
|
||||
<span class="fa {{.Get "name"}}" {{with .Get "size"}}style="font-size:{{.}}"{{end}} aria-hidden="true"></span>
|
||||
{{- end -}}
|
||||
{{- else -}}
|
||||
{{- if not (hasPrefix (.Get 0) "fa-") -}}
|
||||
<span class="glyphicon glyphicon-{{.Get 0}}" aria-hidden="true"></span>
|
||||
{{- else -}}
|
||||
<span class="fa {{.Get 0}}" aria-hidden="true"></span>
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
Reference in New Issue
Block a user