-
Notifications
You must be signed in to change notification settings - Fork 278
Dev 1.6.2: fix code lint, bugs and style & Add theme feature #299
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
Conversation
Also fix the npm script. Now you can run `yarn prettier` to auto fix link problem.
1、顶部 header 元素不再遮挡点击事件 2、回到顶部按钮现在正确配合侧边栏动画移动 3、博文的列表间距现在更加合理 4、修复博文的超链接,和 banner 博客名的间距样式表 5、包括动画兼容性在内的一些其他样式表修复 6、为滚动事件添加函数节流,优化性能 7、现在博文页面向上滚动更容易触发 banner 8、现在鼠标悬浮在主页的'友链'和'关于我'处会显示主题色
1. float_button_theme: theme for float buttons, including back-top button and header-menu button 2. read_progress_color: color for blog post's header read progress 3. post_banner_theme: theme for blog post banner
Now overflow toc will be scrollable
|
& Update dependencies & Fix lint.
|
我注意到博文页面的标题前方会自动生成一个 <a class="headerlink" />(大概是由 <h2 id="静态方法和属性">
<a href="#静态方法和属性" class="headerlink" title="静态方法和属性"></a>
静态方法和属性
<a class="anchorjs-link anchorjs-archer" aria-label="Anchor" data-anchorjs-icon="" href="#静态方法和属性" style="font: 1em / 1 anchorjs-icons; padding-left: 0.375em;"></a>
</h2> 它可以点击,并会占用一定的位置。考虑到博客主题已经使用 可以通过设置 @fi3ework @Stark-X 我不确定有这个占用的位置比较好,还是没有比较好。 如果有这个缩进比较好看的话,我可以为标题前面添加一个 |
& remove block before md doc titles
1. 更新了一些依赖。 2. Webpack 5.x 已经集成了 terser-webpack-plugin,因此在依赖中去掉它。 3. 编译 search.js 文件时需要 algoliasearch 依赖,否则无法编译成功,故在依赖中添加它。
|
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.
Great work
remove instantsearch.js dependency from package.json as it is already loaded with cdn.
|
修复了 npm 脚本,现在可以使用
npm run prettier
来格式化src
目录下的代码格式了。rounded
使得按钮变圆,并去除边框feature
使用主题颜色clean
去除底部边框,并使透明度降低