Coder Social home page Coder Social logo

无法生成主题 about hexo HOT 11 CLOSED

hexojs avatar hexojs commented on August 27, 2024
无法生成主题

from hexo.

Comments (11)

tommy351 avatar tommy351 commented on August 27, 2024 1

_config.yml內的root設定更改下試試看,如果url是http://yoursite.com/child的話,root必須是/child/

from hexo.

cuxnil avatar cuxnil commented on August 27, 2024

还是不行,我用的nginx,nginx.conf里server段设置的目录是site,然后deploy之后所有的public里文件都上传到site里了。在访问本地和vps上的网站,打开文件和文章链接都是正常的,只是没有主题。
另外,如果不建立public目录的话,hexo generate会报错,我是手动建立public后又hexo generate的,不知道有没有影响?

from hexo.

tommy351 avatar tommy351 commented on August 27, 2024

跟public資料夾應該無關,能讓我看看網站的內容嗎

from hexo.

cuxnil avatar cuxnil commented on August 27, 2024

网址是cuxnil.me,查看页面源代码,提示找不到css路径,应该还是生成网站的时候出的问题。
谢谢

from hexo.

tommy351 avatar tommy351 commented on August 27, 2024

主題原始檔不知為何沒有複製過去,public資料夾內有css嗎?

from hexo.

cuxnil avatar cuxnil commented on August 27, 2024

没有啊,如果有的话,hexo server 来本地浏览应该就是正常的了。我也不明白是怎么回事。
完全按照安装指南来做的,安装过程中也没有任何报错,所有功能都正常使用,包括rsync的deploy方式,唯独生成的文章没有主题。
1、这是本地站点里的目录
1

from hexo.

cuxnil avatar cuxnil commented on August 27, 2024

2、这是public里的文件
2
3、这是light主题里的文件
3
4、这是话题source里的css里的文件
4

from hexo.

tommy351 avatar tommy351 commented on August 27, 2024

了解,大概是生成過程出了什麼錯誤

from hexo.

tommy351 avatar tommy351 commented on August 27, 2024

原來是生成時忽略主題安裝了,0.4.3版已修復

from hexo.

cuxnil avatar cuxnil commented on August 27, 2024

哇,谢谢,测试一下,一会回来报告

from hexo.

cuxnil avatar cuxnil commented on August 27, 2024

Perfect!
主题功能已经正常了,thanks 。

from hexo.

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.