安知鱼butterfly主题

一、配置pua

09.hexo pwa安装实现文章更新通知_哔哩哔哩_bilibili1:51

butterfly 重装日记 | 安知鱼 (anzhiy.cn)

npm install --global gulp-cli # 全局安装gulp命令集

npm install workbox-build gulp --save # 安装workbox和gulp插件

To address issues that do not require attention, run:
  npm audit fix
To address all issues possible (including breaking changes), run:
  npm audit fix --force
Some issues need review, and may require choosing
a different dependency.
Run `npm audit` for details.

这是一个npm审核警告,告诉你你的项目中有一些安全问题需要解决。该警告提供了两种解决方案:

使用 npm audit fix 解决不需要关注的问题。
使用 npm audit fix --force 解决所有可能的问题(包括破坏性更改)。
有些问题需要审查,并可能需要选择不同的依赖项。 运行 npm audit 以获取详细信息。

1.2问题一

修改[Blogroot]\themes\butterfly\layout\includes\additional-js.pug,在文件底部添加以下内容,注意缩进。butterfly_v3.6.0取消了缓存配置,转为完全默认,需要将{cache:theme.fragment_cache}改为{cache: true}:

      if theme.pjax.enable
        !=partial('includes/third-party/pjax', {}, {cache:theme.fragment_cache})

      !=partial('includes/third-party/baidu_push', {}, {cache:theme.fragment_cache})

+     if theme.pwa.enable
+       !=partial('includes/third-party/pwanotice', {}, {cache: true})

$ gulp压缩文件

1.3github Repository not found 解决办法

git pull的时候遇到下面的报错。

1

2

remote: Repository not found

fatal: repository 'https://github.com/MyRepo/project.git/' not found

解决办法如下,然后再执行git pull就会让你输入账号密码。就可以正常使用啦。

1

2

3

$ git credential-manager uninstall

$ git credential-manager install

1.4意识流

设置自定义css

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

哈都婆

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值