Closed LolipopJ closed 2 years ago
非常奇怪,在这个 Github Action 里我提交的代码在 Build 步骤出现了错误。
ERROR {
err: SyntaxError: Unexpected token '.' in /home/runner/work/LolipopJ.github.io/LolipopJ.github.io/themes/archer/layout/_partial/experimental-options.ejs while compiling ejs
If the above error is not helpful, you may want to try EJS-Lint:
https://github.com/RyanZim/EJS-Lint
Or, if you meant to create an async function, pass async: true as an option.
...
把构建的 Node.js 版本从 12.x 切换到 14.x,就能够构建成功了。
考虑到代码新增的是无关紧要的功能,我将暂时注释掉此部分内容。
@fi3ework 我觉得现在应该没有什么问题了,博客主题在我的主页运行得很好。我将合并此 PR 到 master
分支,如果之后出现任何的问题,just revert the submit. 🗃
非常奇怪,在这个 Github Action 里我提交的代码在 Build 步骤出现了错误。
ERROR { err: SyntaxError: Unexpected token '.' in /home/runner/work/LolipopJ.github.io/LolipopJ.github.io/themes/archer/layout/_partial/experimental-options.ejs while compiling ejs If the above error is not helpful, you may want to try EJS-Lint: https://github.com/RyanZim/EJS-Lint Or, if you meant to create an async function, pass async: true as an option. ...
把构建的 Node.js 版本从 12.x 切换到 14.x,就能够构建成功了。
考虑到代码新增的是无关紧要的功能,我将暂时注释掉此部分内容。
是不是用了 optional chaining 的语法(没找到代码纯瞎猜的)😅
是不是用了 optional chaining 的语法(没找到代码纯瞎猜的)😅
Absolutely right. 查了查 node 13 及以下不兼容,还是不在 ejs 代码里写了。🤯
这个版本添加了几个新的配置项,并且修复了已知的可能影响体验的问题。
例如,修复了之前版本(#305)中由于提前渲染 Toc 导致的标题 OffsetTop 值偏差的问题。这个问题由当 Loading 组件尚未移除时,就计算了标题 Y 轴方向绝对值引起。
又如,在默认情况下,点击文章页面 Toc 目录的内容向上跳转时,可能会出现 Banner 遮挡文本内容。从这个版本开始,通过 Toc 目录跳转时,将预留出这一部分的空间,避免遮挡文本内容。
详细的更新内容如下:
新特性 / Feat
变更 / Change
980px
修改为960px
500px
修改为200px
_config.yml
中Other
的部分主题配置移动到Theme
下。修复 / Fix
样式 / Style
性能 / Perf
回滚 / Revert
其它 / Chore
CHANGELOG.md
文件下,而不是README.md
开发者 / Dev
source_version
配置,一键修改源文件版本日期.editorconfig
文件实验性配置 / Experimental Options
现在用户可以自定义引入页面首选字体了。将覆盖 Base 字体配置,而不会覆盖 Feature 字体。
由于此特性基于 CSS Variables,不兼容 IE 和部分常见的浏览器,因此作为实验性配置使用。
已知问题 / Known Issues
由于采用了特殊的地址栏 Hash 来避免
window.location.hash
赋值时自动跳转到页面对应位置的默认行为,并通过如下代码在链接访问时读取当前页面 Hash 值跳转:在识别前,浏览器可能会首先获取
http://someurl/undefined
,并返回 Get 失败报错。