Add Lotusdocs theme

This commit is contained in:
Abner Coimbre
2026-01-11 16:46:05 -08:00
parent d051d46d1f
commit 8a4d04db58
577 changed files with 40404 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
{{ $icon_array := dict
"info" "info"
"warning" "warning"
"success" "check_circle"
"danger" "report"
"default" "notifications"
"primary" "info"
}}
<div class="alert alert-{{ with .Get "context" }}{{.}}{{ else }}default{{ end }} d-flex" role="alert">
<div class="flex-shrink-1 alert-icon">
{{ with .Get "icon" }}
{{ . }}
{{ else }}
<span class="material-icons size-20 me-2">
{{ with .Get "context" }}{{ index $icon_array . }}{{ else }}{{ $icon_array.default }}{{ end }}
</span>
{{- end -}}
</div>
{{ with .Get "text" }}
<div class="w-100">{{ . | $.Page.RenderString }}</div>
{{ else }}
{{ with .InnerDeindent }}
<div class="w-100">
{{ . }}
</div>
{{ else }}
{{ errorf "No valid text variable or Inner content given"}}
{{- end -}}
{{- end -}}
</div>