Convert docdock theme from submodule to native files and fix Hugo compatibility

This commit is contained in:
2025-10-07 22:04:56 +02:00
parent 4dde383587
commit 288932b4af
354 changed files with 41378 additions and 4 deletions

View 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 -}}