File tree Expand file tree Collapse file tree 1 file changed +19
-11
lines changed Expand file tree Collapse file tree 1 file changed +19
-11
lines changed Original file line number Diff line number Diff line change 1
1
{{ define "main" }}
2
- <!-- Override Prism's default copy messages to 'empty'. Required by CSS styling.
3
- See : https://prismjs.com/plugins/copy-to-clipboard/#styling -->
4
- < div class =" main-content-area " data-prismjs-copy ="" data-prismjs-copy-success ="" data-prismjs-copy-error ="">
2
+ <!-- override Prism's default copy messages to 'empty'. Required by CSS styling.
3
+ see : https://prismjs.com/plugins/copy-to-clipboard/#styling -->
4
+ < div data-prismjs-copy ="" data-prismjs-copy-success ="" data-prismjs-copy-error ="">
5
5
{{ .Content }}
6
6
</ div >
7
7
10
10
{{ end -}}
11
11
12
12
{{ if .Page.Store.Get "hasMermaid" }}
13
- {{ $mermaid := resources.Get (printf "%s/%s" ($.Scratch.Get "pathName") "js/mermaid.min.js") }}
14
- {{ if hugo.IsProduction }}
15
- {{ $mermaid = $mermaid | fingerprint "sha384" }}
16
- {{ end }}
17
- < script src ="{{ $mermaid.RelPermalink }} " {{ if hugo.IsProduction }}integrity ="{{ $mermaid.Data.Integrity }} "{{ end }} > </ script >
18
- < script src ="/js/mermaid-init.js "> </ script >
13
+ {{ $mermaid := resources.Get (printf "%s/%s" ($.Scratch.Get "pathName") "js/mermaid.min.js") }}
14
+ {{ if hugo.IsProduction }}
15
+ {{ $mermaid = $mermaid | fingerprint "sha384" }}
16
+ {{ end }}
17
+ < script src ="{{ $mermaid.RelPermalink }} " {{ if hugo.IsProduction }}integrity ="{{ $mermaid.Data.Integrity }} "{{ end }} > </ script >
18
+ < script >
19
+ const config = {
20
+ startOnLoad :true ,
21
+ logLevel : "error" ,
22
+ align : "center" ,
23
+ theme :"null"
24
+ } ;
25
+ mermaid . initialize ( config ) ;
26
+ </ script >
19
27
{{ end }}
20
28
21
29
{{ if .Site.Params.feedback.enabled | default false -}}
22
- {{ if or (.Site.Params.plausible.dataDomain) (.Site.GoogleAnalytics) }}
30
+ {{ if or (.Site.Params.plausible.dataDomain) (.Site.Config.Services. GoogleAnalytics.ID ) }}
23
31
{{- partial (printf "%s/%s" ($.Scratch.Get "pathName") "footer/feedback.html") . -}}
24
32
{{ else }}
25
33
{{ errorf "Either Google Analytics or Plausible Analytics must be configured before enabling the Feedback Widget." }}
26
34
{{ end }}
27
35
{{ end -}}
28
36
29
- {{ end }}
37
+ {{ end }}
You can’t perform that action at this time.
0 commit comments