Comments (5)
找到修改哪里了,修改文件themes/A4/layout/layout.ejs
<% if(path == "index.html") { %>
<!-- <div class="shadow-drop-2-bottom index-main">
<%- partial('_partial/header') %>
<%- partial('index') %>
<%- partial('_partial/footer') %>
</div> -->
<div class="shadow-drop-2-top paper-main">
<%- partial('_partial/post-header') %>
<%- partial('list') %>
<%- partial('_partial/footer') %>
</div>
from hexo-theme-a4.
抱歉,最近工作太忙,没能及时回复,你只需要修改配置文件,将 menu 中的 首页的地址从 “/” 换为 “/list/”即可,如:
menu:
首页: /list/
文章: /list/ # 需要hexo new page list 并且在对应页面的 front-matter添加 layout: list
作品: /works/
留言: /message/
关于: /about/ # 需要hexo new page about
Now: /now/
from hexo-theme-a4.
感谢作者回复。
from hexo-theme-a4.
这样修改只是菜单栏的首页链接变成了c82.top/list 直接访问 c82.top 内容还是没有变化
from hexo-theme-a4.
那我得修改代码,我预计会在这个月更新一个版本,增加一些功能,我到时候加上 设置 首页 为文章页
from hexo-theme-a4.
Related Issues (20)
- 可以加个友链页面 HOT 2
- 关于首页的标题能否设置大小 HOT 2
- hexo generate output HOT 3
- 字体更换问题 HOT 4
- 代码行不显示、 超出宽度问题 HOT 5
- 字体配置 HOT 1
- feature:“首页”,“文章”,“关于” 这几个栏目的名称能否支持修改 HOT 2
- 在firefox上list文章高度异常
- 控制台启动报错?(分类标签相关)
- Customized favicon 404 on Non-index pages -- Possible cause & Possible fix HOT 1
- 代码块怎么没有渲染? HOT 3
- 本地部署正常,github action部署有问题
- 强制在每一页面进行数学公式渲染 HOT 1
- nvm 安装 A4 主题的问题 HOT 2
- 如何更改代码块渲染方式 HOT 1
- 关于部分LaTex显示有问题 HOT 1
- fix:删除显示Top后的数字
- fix:暗黑模式闪烁问题
- fix:修复暗黑模式,图片也被反色的问题
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-a4.