mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-11-25 12:01:37 +01:00
parent
3442d5cb52
commit
7ea01a0ab2
@ -17,7 +17,7 @@
|
|||||||
<main class="main">
|
<main class="main">
|
||||||
{{- block "main" . }}{{ end }}
|
{{- block "main" . }}{{ end }}
|
||||||
</main>
|
</main>
|
||||||
{{ partialCached "footer.html" . .Layout .Kind (.Param "hideFooter") -}}
|
{{ partialCached "footer.html" . .Layout .Kind (.Param "hideFooter") (.Param "ShowCodeCopyButtons") -}}
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
@ -84,7 +84,7 @@
|
|||||||
</script>
|
</script>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- if (and (eq .Kind "page") (ne .Layout "archives") (ne .Layout "search") (.Site.Params.ShowCodeCopyButtons)) }}
|
{{- if (and (eq .Kind "page") (ne .Layout "archives") (ne .Layout "search") (.Param "ShowCodeCopyButtons")) }}
|
||||||
<script>
|
<script>
|
||||||
document.querySelectorAll('pre > code').forEach((codeblock) => {
|
document.querySelectorAll('pre > code').forEach((codeblock) => {
|
||||||
const container = codeblock.parentNode.parentNode;
|
const container = codeblock.parentNode.parentNode;
|
||||||
|
Loading…
Reference in New Issue
Block a user