-
Notifications
You must be signed in to change notification settings - Fork 276
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.6.4: Add and fix toc scroll event #307
Conversation
1. Fix license wrapper word break. 2. Add transition to footer. 3. Remove useless console.
100% width title and 45% width of paginator of post page
and fix some issues.
Also fix post i18n
1. Remove fontawsome link in base-head.ejs to reduce package size. 2. Update deps. 3. Update prettier script to fix code lint.
1. Use $base-font-family as default title font-family. 2 Improve mobile exp.
1. In index page, there will be a read more button in each post item which has excerpt or abstract. 2. Hide anchor link in index page's post items. Also limit the max-height of these images.
…profile links solve #308
more: 1. fix dark mode performance 2. fix webpack settings 3. remove background-holder 4. other style fix
非常奇怪,在这个 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 到 |
是不是用了 optional chaining 的语法(没找到代码纯瞎猜的)😅 |
Absolutely right. 查了查 node 13 及以下不兼容,还是不在 ejs 代码里写了。🤯 |
🛎️ One-click translation by Google. 中文更新内容见 fi3ework#307 ## Feat 1. Now you can set the avatar on the homepage to be borderless 2. The Hash value of the address bar is automatically modified to the corresponding Toc value as the article page scrolls 3. When the Toc is too long, the Toc directory will [scroll] as the article page scrolls (https://github.com/fi3ework/hexo-theme-archer/projects/1#card-64443923) 4. Add support for floating elements 5. The article with summary content enabled can be configured to display the "read more" button 6. Now you can configure the search function in the Profile bar to check the SEO status of your blog 7. Now the Profile bar can be customized to add more menus or links (fi3ework#308) ## Change 1. The breakpoint on the mobile terminal is changed from `980px` to `960px` 2. When you click the Toc directory of the article page to jump, the banner is forced to be displayed, and space for the banner is reserved 3. The threshold for scrolling up the article page to display the Banner is changed from `500px` to `200px` 4. Part of the theme configuration of `Other` in `_config.yml` is moved to `Theme`. 5. Remove the Anchor button of the title in the homepage summary ## Fix 1. Fix the [Issue](fi3ework#306 (comment)) that the Chinese word segmentation of the original link in the article page License does not automatically break. 2. Fix the problem that the page may display abnormally when opening Algolia search under certain pages 3. When the loading is not completed, the sidebar opening animation is no longer displayed incorrectly 4. Fix the problem that the Toc of the article page scrolls with the page to highlight the error 5. Fix the situation where floating elements may be displayed incorrectly on the article page (fi3ework#309) ## Style 1. Adapt the color of the table in the article in Dark mode 2. Optimize the color configuration of Dark mode 3. Optimize the style of the 404 page 4. Optimize the display of the article page on the mobile terminal 5. Optimize the display of the sidebar on the mobile terminal 6. Optimize the display of the homepage summary and limit the height of the picture 7. Optimize the display effect when switching pages in Dark mode ## Perf 1. Improve browser scrolling performance 2. Optimize page loading performance ## Revert 1. Feature font is no longer used in sidebar article titles 2. Remove the useless Background-holder ## Chore 1. Put the content of the update log in the `CHANGELOG.md file instead of ` README.md` ## Dev 1. Provide `source_version` configuration, one-click to modify the source file version date 2. Add `.editorconfig` file
这个版本添加了几个新的配置项,并且修复了已知的可能影响体验的问题。
例如,修复了之前版本(#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 失败报错。