
织布机

视频编辑第5部_20201214012916685.mp4

Handsome主题添加评论者浏览器标识

效果添加以下的代码到 functions.php 文件末尾/** 获取浏览器信息 */ function getBrowser($agent) { $outputer = false; if (preg_match('/MSIE\s([^\s|;]+)/i', $agent)) { $outputer = '<i…

为添加Handsome添加加载时间

添加方法首先在主题的 functions.php 文件里加入以下统计代码;//加载耗时 function timer_start() { global $timestart; $mtime = explode( ' ', microtime() ); $timestart = $mtime[1] + $mtime[0]; ret…

Handsome设置彩色标签云

如图所示更改方法打开后台-更改外观-设置外观-开发者设置-选择好需要的颜色粘贴至自定义JavaScript即可颜色也可以自行设定,修改代码中的十六进制颜色值即可<!--纯黑标签云--> let tags = document.querySelectorAll("#tag_cloud-2 a"); let colorA…

Handsome主题使用vditor.js前台解析lazy-load的问题
Caddy安装默认配置
Caddy文件备份
Caddy2如何为Typecho设置伪静态

出现问题的文档 现已经修复[post cid="128" cover="https://www.ioioi.cn/Logo/default-monochrome.png"/]在我升级Handsome到7.3.1的时候,偶然发现可以设置 vditor.js于是就设置了问题是这样子的最初的时候是这样的经过我的调试发现切换到 Typecho默认的前台解析…
# The Caddyfile is an easy way to configure your Caddy web server. # # Unless the file starts with a global options block, the first # uncommented line is always the address o…
#proxy.xyz.blue { # tls /etc/caddy/tls/xyz.blue/fullchain.pem /etc/caddy/tls/xyz.blue/privkey.pem # header { # Strict-Transport-Security "max-age=63072000; includeSubDoma…
答案是无需设置!!!Caddy2 已经内置了关于index.php的伪静态!That’s right, Caddy v2’s php_fastcgi directive is a shortcut that includes a try_files rewrite as you can see in the expanded formCaddy社区…

Typecho后台文章列表按照发文时间排序

编辑该文件nano var/Widget/Contents/Post/Admin.php寻找$select->order('table.contents.cid', Typecho_Db::SORT_DESC)将其更改为$select->order('table.contents.created'…

在linux中设置优先使用ipv4,而不是ipv6
经试验在debian Centos ArchLinux Manjaro中有效修改/etc/gai.conf取消下面这一行的注释precedence ::ffff:0:0/96 100添加如下内容label ::1/128 0 label ::/0 1 label 2002::/16 2 label ::/96 3 label ::ffff:0:0/…