Comments (4)
试一下别的文件名, 不要使用archives.
你可以:
- 把archives文件重命名为archive
- 在 hexo-folder/themes/vexo/_config.yml 中修改 Archives: /archives/ 为
Archives: /archive/
我这里本地测试是可以的, 你可以试试。
ps: 好像只要文件名不是archives就行
from hexo-theme-vexo.
我按照你的方法试了一下,确实可以了,有强迫症的我感觉到无比的酣畅淋漓,多谢啦!感激不尽!
但是不知道算什么会出现这样的问题?这是源码head.ejs
中生成title
的方式:
<title>
<% if (page.title){ %>
<%= page.title %> | <%= config.title %>
<% } else { %>
<%= config.title %>
<% } %>
</title>
根据源码来看,找不到archives
的title
,才会展示首页的title
,可是明明有archives
文件夹呀?
from hexo-theme-vexo.
老哥, 我又研究了下,应该是文件夹重复了。
问题出在 hexo-folder/_config.yml中, 该文件中的archive_dir选项默认为archives,你可以更改该选项为其他名字。
当执行 hexo generate 命令时, hexo会建立public文件(同样在_config.yml定义), 在public文件夹下又会导入 hexo-folder/source/ 下的文件夹(包括你自己建立的archives文件) , 同时建立archive_dir(默认为archives), 所以 _config.yml 中定义的archive_dir覆盖了你在source下建立的 archives
其实 tag_dir 默认为 tags, 也发生了重复, 但 hexo并没有删除它
你可以更改 _config.yml 中的 tag_dir, archive_dir, 执行 hexo generate, 然后查看 public 文件中的内容, 多试几次就明白了。
from hexo-theme-vexo.
兄弟,我看了一下,按照你的思路,修改_config.yml
,确实出现你说的那种情况,_config.yml
中的archives
无论如何都会创建,即使我把archive_dir
配置项删掉也是,这可能中Hexo的机制。
正如你所说,除了这个archives
,tags
和project
都没问题,不知道什么原因?
from hexo-theme-vexo.
Related Issues (20)
- 如何添加google analytics? HOT 2
- 如何创建分类页面,hexo new page不能解决
- 评论系统 HOT 2
- 可不可以完善下gitment catalog search这三个功能呀? HOT 1
- tag 和about分页400问题
- 可以添加category吗?
- 一秒几百个报错
- 文章封面失效了吗?
- Looks the theme not work in version Hexo
- Primary/main color in config file
- Hardcoded values HOT 1
- in links part,can I add my bilibili account?
- local search HOT 3
- 有没有文章置顶功能呀
- 可以在评论系统中支持Valine吗?Can we support Valine as our comment system?
- 怎么升级啊?
- 请问一下 你的图片都是在那里找的啊?
- 评论系统 一直授权失败 一直加载咋回事 ?? HOT 1
- hexo 博客 突然打不开 ? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hexo-theme-vexo.