diff options
| -rw-r--r-- | layouts/_default/baseof.html | 2 | ||||
| -rw-r--r-- | layouts/partials/footer.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 37c595b..6dfe741 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -17,7 +17,7 @@ <main class="main"> {{- block "main" . }}{{ end }} </main> - {{ partialCached "footer.html" . .Layout .Kind (.Param "hideFooter") -}} + {{ partialCached "footer.html" . .Layout .Kind (.Param "hideFooter") (.Param "ShowCodeCopyButtons") -}} </body> </html> diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 3cebf48..4f7182b 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -84,7 +84,7 @@ </script> {{- 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> document.querySelectorAll('pre > code').forEach((codeblock) => { const container = codeblock.parentNode.parentNode; |
