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,37 @@
{{ define "main" }}
<!-- override Prism's default copy messages to 'empty'. Required by CSS styling.
see: https://prismjs.com/plugins/copy-to-clipboard/#styling -->
<div data-prismjs-copy="" data-prismjs-copy-success="" data-prismjs-copy-error="">
{{ .Content }}
</div>
{{ if and .GitInfo .Site.Params.docs.repoURL -}}
{{ partial (printf "%s/%s" ($.Scratch.Get "pathName") "gitinfo") . }}
{{ end -}}
{{ if .Page.Store.Get "hasMermaid" }}
{{ $mermaid := resources.Get (printf "%s/%s" ($.Scratch.Get "pathName") "js/mermaid.min.js") }}
{{ if hugo.IsProduction }}
{{ $mermaid = $mermaid | fingerprint "sha384" }}
{{ end }}
<script src="{{ $mermaid.RelPermalink }}" {{ if hugo.IsProduction }}integrity="{{ $mermaid.Data.Integrity }}"{{ end }}></script>
<script>
const config = {
startOnLoad:true,
logLevel: "error",
align: "center",
theme:"null"
};
mermaid.initialize(config);
</script>
{{ end }}
{{ if .Site.Params.feedback.enabled | default false -}}
{{ if or (.Site.Params.plausible.dataDomain) (.Site.Config.Services.GoogleAnalytics.ID) }}
{{- partial (printf "%s/%s" ($.Scratch.Get "pathName") "footer/feedback.html") . -}}
{{ else }}
{{ errorf "Either Google Analytics or Plausible Analytics must be configured before enabling the Feedback Widget." }}
{{ end }}
{{ end -}}
{{ end }}