Handsome主题操作记录

QQ分享卡片

meta标签直接插入component/header.phphead标记内即可

    <!-- QQCard -->
    <meta itemprop="name" content="<?php Content::echoTitle($this, $this->options->title, $this->currentPage,$this->request->filter('int')->commentPage); ?>">
    <?php if($this->is('index')): ?>
    <meta itemprop="image" content="https://lza59.com/favicon.png">
    <meta name="description" itemprop="description" content="<?php $this->options->description(); ?>">
    <?php elseif($this->is('post')): ?>
    <meta itemprop="image" content="<?php echo Content::returnHeaderImgSrc($this,'post',0,true); ?>">
    <meta name="description" itemprop="description" content="<?php echo Content::excerpt(trim($this->fields->customSummary)!=''?$this->fields->customSummary:$this->excerpt,200); ?>">
    <?php endif; ?>
    <!-- QQCard END -->

Uncaught SyntaxError: Unexpected end of input highlight.min.js:1297

需要修改Handsome主题的CDN.php文件,文件目录usr/themes/handsome/libs/CDN.php,将https://lf3-cdn-tos.bytecdntp.com/cdn/expire-1-M/highlight.js/10.6.0替换为https://jsdelivr.zane-liu.com/gh/highlightjs/cdn-release@11.6.0/build,或者替换成其他jsdelivr加速服务

之后需要在jsdelivr.zane-liu.com/gh/highlightjs/cdn-release@11.6.0/build/styles目录下创建dracula.min.css文件,代码如下

.hljs{display:block;overflow-x:auto;padding:.5em;background:#282a36}.hljs-keyword,.hljs-link,.hljs-literal,.hljs-section,.hljs-selector-tag{color:#8be9fd}.hljs-function .hljs-keyword{color:#ff79c6}.hljs,.hljs-subst{color:#f8f8f2}.hljs-addition,.hljs-attribute,.hljs-bullet,.hljs-name,.hljs-string,.hljs-symbol,.hljs-template-tag,.hljs-template-variable,.hljs-title,.hljs-type,.hljs-variable{color:#f1fa8c}.hljs-comment,.hljs-deletion,.hljs-meta,.hljs-quote{color:#6272a4}.hljs-doctag,.hljs-keyword,.hljs-literal,.hljs-name,.hljs-section,.hljs-selector-tag,.hljs-strong,.hljs-title,.hljs-type{font-weight:700}.hljs-emphasis{font-style:italic}

THREE.WebGLRenderer 101 b2.js:182

直接关闭AliceStyle插件的动态背景功能

PartiallyPassword is enabled. (索引):1361

使用了PartiallyPassword插件可能会有这个提示,在PartiallyPassword插件设置页面下,清空自定义页脚 HTML编辑框内的内容,刷新页面方可关闭以上提示

<script>
// Powered by wuxianucw
console.log('PartiallyPassword is enabled.');
</script>

最后修改:2022 年 07 月 22 日
如果您本站的内容有帮助到您,并且在您条件允许的前提下,可以打赏支持本站,赞赏将用于服务器与网站维护费用,感谢您的支持!