知更鸟主题 5.2 及之前的版本使用的图标库为 font awesome,5.2 之后的版本使用阿里图标库的图标。相对来说,选择阿里图标库更好一些,它的图标更全且有国内 cdn,访问速度更快。
添加后的效果:

进入到数据库,过滤出当前用户的信息:
|
1 |
select uid, name, password from typecho_users where name = 'xxxx'; |
修改第三列的密码为 e10adc3949ba59abbe56e057f20f883e:
|
1 |
update typecho_users set password = 'e10adc3949ba59abbe56e057f20f883e' where name = 'xxxx'; |
然后使用密码 123456 登陆,重新修改密码就 ... 阅读更多
一、 Let's Encrypt Let's Encrypt SSL 证书是一个免费的公益项目,由 Mozilla 、 Cisco 、 Akamai 、 IdenTrust 、 EFF 等组织人员发起,主要的目是为了推进网站从 HTTP 向 HTTPS 过度的进程,目前已经有越来越多的商家加入和赞助支持。 使用 Let's Encr ... 阅读更多
效果 主题版本 Begin LTS,有两种方法添加阅读时间,效果如下: 方法 1:通过图标形式放在标题栏 打开主题根目录下的 inc/inc.php 文件,第 505 行 begin_single_meta 函数添加以下内容:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
function begin_single_meta() { echo '<div class="begin-single-meta">'; echo '<span class="my-date"><i class="be be-schedule"></i> '; time_ago( $time_type ='posts' ); echo '</span>'; // 添加阅读时间 $text = trim(strip_tags( get_the_content())); $text_num = mb_strlen($text, 'UTF8'); $read_time = ceil($text_num/400); echo '<span class="my-date"><i class="zm zm-read"></i> '; // 图标来源于阿里图标库 echo $read_time; echo '分钟</span>'; // 添加阅读时间完毕 if ( post_password_required() ) { echo '<span class="comment"><a href="#comments">' . sprintf(__( '密码保护', 'begin' )) . '</a></li>'; } else { echo '<span class="comment">'; // ... } |
关于阅读时间的图标可以 ... 阅读更多
知更鸟主题 5.2 及之前的版本使用的图标库为 font awesome,5.2 之后的版本使用阿里图标库的图标。相对来说,选择阿里图标库更好一些,它的图标更全且有国内 cdn,访问速度更快。
添加后的效果:

一、安装插件 在插件管理后台页面,输入 WP Mail SMTP 搜索插件安装,安装完成后的设置界面: 二、设置邮箱账户 这里使用的是 QQ 邮箱,QQ 绑定了域名邮箱 [email protected] 。要注意的是 QQ 邮箱不能直接使用密码登录,要通过邮箱授权码登录,这里的操作可以参考 python 发送邮件。 ... 阅读更多
使用 hexo generate 命令时报错:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
INFO Start processing FATAL Something's wrong. Maybe you can find the solution here: https://hexo.io/docs/troubleshooting.html Template render error: Error: expected end of comment, got end of file at Object._prettifyError (/web/hexo/node_modules/nunjucks/src/lib.js:35:11) at Template.render (/web/hexo/node_modules/nunjucks/src/environment.js:526:21) at Environment.renderString (/web/hexo/node_modules/nunjucks/src/environment.js:364:17) at /web/hexo/node_modules/hexo/lib/extend/tag.js:66:9 at Promise._execute(/web/hexo/node_modules/bluebird/js/release/debuggability.js:303:9) at Promise._resolveFromExecutor (/web/hexo/node_modules/bluebird/js/release/promise.js:483:18) at new Promise (/web/hexo/node_modules/bluebird/js/release/promise.js:79:10) at Tag.render (/web/hexo/node_modules/hexo/lib/extend/tag.js:64:10) at Object.tagFilter [as onRenderEnd] (/web/hexo/node_modules/hexo/lib/hexo/post.js:266:16) at /web/hexo/node_modules/hexo/lib/hexo/render.js:65:19 at tryCatcher (/web/hexo/node_modules/bluebird/js/release/util.js:16:23) at Promise._settlePromiseFromHandler (/web/hexo/node_modules/bluebird/js/release/promise.js:512:31) at Promise._settlePromise (/web/hexo/node_modules/bluebird/js/release/promise.js:569:18) at Promise._settlePromise0 (/web/hexo/node_modules/bluebird/js/release/promise.js:614:10) at Promise._settlePromises (/web/hexo/node_modules/bluebird/js/release/promise.js:693:18) at Async._drainQueue (/web/hexo/node_modules/bluebird/js/release/async.js:133:16) at Async._drainQueues (/web/hexo/node_modules/bluebird/js/release/async.js:143:10) at Immediate.Async.drainQueues [as _onImmediate] (/web/hexo/node_modules/bluebird/js/release/async.js:17:14) at runCallback (timers.js:794:20) at tryOnImmediate (timers.js:752:5) at processImmediate [as _immediateCallback] (timers.js:729:5) |
一、关于 Github Pages github pages 是 github 提供的静态文件托管服务,支持部署仓库内的静态页面文件,特别适合 hexo 、 jekyll 以及 gitbook 等应用部署网站使用。 Github Pages 有以下几个优点: 完全免费 支持自定义域名 支持 HTTPS 免备案 其实国内像 gi ... 阅读更多
next 主题从 5 升级到 6 后,不管怎么设置语言都是一直为英语。 后面查看主题的语言包才发现 6.0 的中文语言包名字已经改了,之前是 zh-Hans ,现在已经做了对应的调整。
|
1 2 3 4 |
[ma@ma maqianos.coding.me]$ ls -l themes/next-v6/languages/zh-* -rw-r--r-- 1 ma root 1849 Feb 28 15:54 themes/next-v6/languages/zh-CN.yml -rw-r--r-- 1 ma root 1842 Feb 28 15:54 themes/next-v6/languages/zh-HK.yml -rw-r--r-- 1 ma root 1839 Feb 28 15:54 themes/next-v6/languages/zh-TW.yml |
在站点配置文件_config.yml 中修改 language: ... 阅读更多
又折腾了一个服务器,打算腾出来日常学习使用的。 然而心里打好的算盘差点被阿里的专有网络给坑了,因为本来是想着两个服务器通过内网连通,所以买了同一个地域的服务器。 也不知道为什么手贱点了个专有网络,然后很萌萌哒的发现在专有网络内内网没有那么容易通。 苦逼的各种找资料和文档,浪费半个下午,终于搞定了。参 ... 阅读更多
先写个标题,内容下次再写,太晚了得睡觉了,明天一早还要起来跑步~ 说说地址:我的说说首页 效果 在微信公众号发送说说内容 同步到 wordpress 说说页面: