-
Notifications
You must be signed in to change notification settings - Fork 273
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dev 1.7.0: donate button, optimized mobile experience and more #399
base: master
Are you sure you want to change the base?
Conversation
…f the blank lines in the generation
- 去除生成的 html 里多余的空行 - 因 node-sass 官方废弃,根据官网指引,改用 sass
… had been moved to "locale.placeholder"
- Lock file `package-lock.json` is removed. - Script `replace-ejs-tag.js` is optimized. - Trailing commas are added by default, due to `[email protected]` Tested on Node.js v14.21.3
Distribute source files based on browser cache control mechanism to avoid unexpected behaviors.
And: - avoid unexpected behaviors of CSS pseudo class :hover in mobile device - make initScroll() a function
Also: - Center profile link items in mobile device
Also: - Optimize styles in sidebar
Also: - Add blur filter when popup is opening
Only support desktop currently.
- adjust chapter orders. - remove writing enhancement chapter, due to the bad generic.
- optimize hide logic of donate button.
Set `<img loading="lazy"></img>` not works, so I remove them. Upgrade version of fancybox.
@@ -3,6 +3,7 @@ node_modules | |||
_config_.yml | |||
_config__.yml | |||
.jsbeautifyrc | |||
package-lock.json |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
package-lock.json
等各种 lock 文件是为了保证所有人工构建项目时使用到的依赖版本是一致的,不能不提交到仓库的。 关联:#396
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
锁文件保留与否各有优劣,优势如您述,可以保证构建环境依赖版本的稳定。
去除的话依赖版本按照 package.json
的规范控制:
"@babel/runtime": "^7.24.5"
:安装最新的@babel/[email protected]
版本,小于8.0.0
;"gulp-postcss": "~9.0.1"
:安装最新的[email protected]
版本,小于9.1.0
;"anchor-js": "5.0.0"
:安装[email protected]
版本。
尽管有的依赖在 Minor 更新中出现不兼容的情况(例如 [email protected]
),但总体可控。相信社区的力量,保持技术栈的迭代跟进。
对于必须要锁版本的依赖,也可以按照规范之三,去除版本前面的标识符号。
package-lock.json
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lock文件不应该删除
是时候遵循通用
x.y.z
版本号规则,让 v1.7.0 来到了(尽管未能全部实现最初规划的功能)。接下来的 Archer 主题发布版本号规则可参考:z
版本号y
版本号x
版本号。话不多说,更新的情报请看:
新特性 / Feature
修复 / Fix
样式 / Style
变更 / Change
source_version
字段。应当依靠浏览器的缓存控制策略来加载最新的文件,不再手动进行配置。其它 / Chore
gtag.js
。@alwaystestnode-sass
为sass
。@Stark-Xhexo-html-minifier
或许能更好地解决这个问题)@Stark-X[email protected]
至[email protected]
。(waline更新提示: #386)@Stark-X[email protected]
版本;移除package-lock.json
。