Giter VIP home page Giter VIP logo

Comments (5)

MemoryCollection avatar MemoryCollection commented on June 11, 2024 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.

HiNinoJay avatar HiNinoJay commented on June 11, 2024 1

抱歉,最近工作太忙,没能及时回复,你只需要修改配置文件,将 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.

MemoryCollection avatar MemoryCollection commented on June 11, 2024

感谢作者回复。

from hexo-theme-a4.

MemoryCollection avatar MemoryCollection commented on June 11, 2024

这样修改只是菜单栏的首页链接变成了c82.top/list 直接访问 c82.top 内容还是没有变化

from hexo-theme-a4.

HiNinoJay avatar HiNinoJay commented on June 11, 2024

那我得修改代码,我预计会在这个月更新一个版本,增加一些功能,我到时候加上 设置 首页 为文章页

from hexo-theme-a4.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.