Handsome主题操作记录
QQ分享卡片
meta
标签直接插入component/header.php
的head
标记内即可 <!-- 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>
个人主页在调整CDN防盗链之后,跳转外站链接仍返回403
将http请求的
header
中有referrer
字段,需要设置为所有请求不发送referrer
<meta name="referrer" content="no-referrer">
版权属于:Zane Liu
本文链接:https://blog.zane-liu.com/archives/start.html
本文章已申请原创保护,转载前请务必征求站长同意,感谢您的配合
2 条评论
欢迎光临 Zane Liu's Blog
欢迎光临 Zane Liu's Blog