From ab88d3ee1a9a5342fa4c4b8e2f0c2d9cd570ae31 Mon Sep 17 00:00:00 2001 From: zkz098 Date: Mon, 27 Jan 2025 18:43:44 +0800 Subject: [PATCH] fix: #328 --- layout/_partials/layout.pug | 4 ++++ package.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/layout/_partials/layout.pug b/layout/_partials/layout.pug index 3e2924b..80d27fd 100644 --- a/layout/_partials/layout.pug +++ b/layout/_partials/layout.pug @@ -94,6 +94,8 @@ html(lang=page.language?page.language:config.language, style=theme.grayMode ? 'f else - audioValue = "undefined" + - var ccIcon = '' + - var ccText = theme.creative_commons.license.toUpperCase() script(data-config type="text/javascript"). var LOCAL = { ispost: !{is_post()}, @@ -107,6 +109,8 @@ html(lang=page.language?page.language:config.language, style=theme.grayMode ? 'f empty: "!{__('search.empty')}", stats: "!{__('search.stats')}" }, + nocopy: "!{!!page.nocopy}", + copyright: `!{page.copyright !== false ? (page.nocopy === true ? __("tips.nocopy") : __("tips.copyright", ccIcon + ccText)) : undefined}`, copy_tex: #{!!page.math}, katex: #{!!page.math}, mermaid: #{!!page.mermaid}, diff --git a/package.json b/package.json index 887febb..8e08635 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hexo-theme-shokax", - "version": "0.4.19", + "version": "0.4.20", "description": "a hexo theme based on shoka", "main": "index.js", "repository": "https://github.com/theme-shoka-x/hexo-theme-shokaX",