-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
caf3eff
commit a3f8c7d
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
*.md | ||
layouts/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{{ 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.js") }} | ||
<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.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 }} |