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 11{{ 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 ="">
55 {{ .Content }}
66 </ div >
77
1010 {{ end -}}
1111
1212 {{ 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 >
1927 {{ end }}
2028
2129 {{ 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 ) }}
2331 {{- partial (printf "%s/%s" ($.Scratch.Get "pathName") "footer/feedback.html") . -}}
2432 {{ else }}
2533 {{ errorf "Either Google Analytics or Plausible Analytics must be configured before enabling the Feedback Widget." }}
2634 {{ end }}
2735 {{ end -}}
2836
29- {{ end }}
37+ {{ end }}
You can’t perform that action at this time.
0 commit comments