xaoxuu / hexo-theme-stellar

内置文档系统的简约商务风Hexo主题,支持大量的标签组件和动态数据组件。
https://xaoxuu.com/wiki/stellar/
MIT License
1.37k stars 331 forks source link

如图,我的便签页如何才能像他们一起。左上角显示头像? #165

Closed czsmall closed 2 years ago

czsmall commented 2 years ago
czsmall commented 2 years ago

image

weekdaycare commented 2 years ago

找 1.11.0 版本的源码进行替换 文件路径是 themes/stellar/layout/_partial/sidebar/logo.ejs

deskside commented 2 years ago

@weekdaycare 请问我的这个路径没有相关文件,怎么解决呀~

image

weekdaycare commented 2 years ago

你是用稳定版安装的吧,那不建议改动源文件,后续升级就有点麻烦,若执意要更改的话 路径在这里 blog/node_modules/hexo-theme-stellar/layout/_partial/sidebar/logo.ejs

weekdaycare commented 2 years ago

@czsmall @deskside 大大刚刚更新了,最新版代码支持显示头像了 image

czsmall commented 2 years ago

嗯嗯 那我要怎么去做更改呢?直接更新嘛?

czsmall commented 2 years ago

@weekdaycare

weekdaycare commented 2 years ago

@czsmall 对的,更新然后参考文档 实现「笔记」页面

czsmall commented 2 years ago

@weekdaycare 要我怎么更新?我改了下图部分。没生效 image

weekdaycare commented 2 years ago

npm i之后hexo cl清除缓存hexo g重新生成

czsmall commented 2 years ago

npm i 报这个有影响嘛? 完整的npm i 在hexo clean && hexo g && hexo s 。。还是没变化

czsmall commented 2 years ago

@weekdaycare

czsmall commented 2 years ago

image

weekdaycare commented 2 years ago

报这个是正常更新。你的便签页面的font-matter是按照文档编写的吗?

czsmall commented 2 years ago

image 是这样,我不确定是否有问题,,来回更改过 还有就是,怎么确定,更新是否成功了呢

czsmall commented 2 years ago

@weekdaycare

weekdaycare commented 2 years ago

我这边测试了一下,显示正常

projects.yml ```yml Notes: name: 便笺 title: 便笺 subtitle: 杂七杂八的收藏 description: index: false # 不在wiki列表中索引这个项目 tags: ```
index.md ```yml --- menu_id: notes layout: wiki wiki: Notes title: 项目 order: 0 comments: false --- ```
czsmall commented 2 years ago

en 找大佬替换了新报。好了

github-actions[bot] commented 2 years ago

:wave: Hello, This issue has been marked as resolved. If there are other issues, please contact us with a new issue.

:wave: 您好, 此 issue 已经被标记为已解决,如果还有其它问题,请提出新的 issue 联系我们。