diff --git a/.prettierignore b/.prettierignore index dd44972..3ee0c37 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1 +1,2 @@ *.md +layouts/ diff --git a/layouts/docs/single.html b/layouts/docs/single.html new file mode 100644 index 0000000..40b7410 --- /dev/null +++ b/layouts/docs/single.html @@ -0,0 +1,33 @@ +{{ define "main" }} + +
+ {{ .Content }} +
+ + {{ 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.js") }} + + + {{ end }} + + {{ if .Site.Params.feedback.enabled | default false -}} + {{ if or (.Site.Params.plausible.dataDomain) (.Site.GoogleAnalytics) }} + {{- 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 }}