Comments (11)
_config.yml內的root設定更改下試試看,如果url是http://yoursite.com/child的話,root必須是/child/
from hexo.
还是不行,我用的nginx,nginx.conf里server段设置的目录是site,然后deploy之后所有的public里文件都上传到site里了。在访问本地和vps上的网站,打开文件和文章链接都是正常的,只是没有主题。
另外,如果不建立public目录的话,hexo generate会报错,我是手动建立public后又hexo generate的,不知道有没有影响?
from hexo.
跟public資料夾應該無關,能讓我看看網站的內容嗎
from hexo.
网址是cuxnil.me,查看页面源代码,提示找不到css路径,应该还是生成网站的时候出的问题。
谢谢
from hexo.
主題原始檔不知為何沒有複製過去,public資料夾內有css嗎?
from hexo.
没有啊,如果有的话,hexo server 来本地浏览应该就是正常的了。我也不明白是怎么回事。
完全按照安装指南来做的,安装过程中也没有任何报错,所有功能都正常使用,包括rsync的deploy方式,唯独生成的文章没有主题。
1、这是本地站点里的目录
from hexo.
2、这是public里的文件
3、这是light主题里的文件
4、这是话题source里的css里的文件
from hexo.
了解,大概是生成過程出了什麼錯誤
from hexo.
原來是生成時忽略主題安裝了,0.4.3版已修復
from hexo.
哇,谢谢,测试一下,一会回来报告
from hexo.
Perfect!
主题功能已经正常了,thanks 。
from hexo.
Related Issues (20)
- hexo 7.2: Error: Cannot find module 'hexo-util/dist/spawn' HOT 1
- .j2 file in code_dir causing rendering error HOT 5
- `include_code` tag is broken in Hexo 7.2.0 HOT 3
- Can't find theme when deploying hexo on github pages HOT 4
- [Bug 🐛] Table not shown when inside a quote HOT 5
- :name parameter in permalink cannot work as expected. HOT 2
- Remove bluebird HOT 1
- > Error: Spawn failed at ChildProcess. (/data/data/com.termux/files/home/blog/node_modules/hexo-util/lib/spawn.js:51:21) at ChildProcess.emit (node:events:513:28) at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12) emm不知道为什么
- Insert image failed HOT 2
- Set Hexo's EventEmitter.MaxListeners to 100 HOT 5
- relative path referencing of images HOT 1
- auto_spacing: true 不起作用 HOT 2
- An error occurred while running "hexo g": no such file or directory, mkdir 'H:\blog\public\:' HOT 5
- Filters do not allow adding new properties to posts HOT 2
- 代码片段中 HTML 片段会被渲染成 HTML,升级7.3.0后无法构建。HTML fragments in code snippets are rendered as HTML and cannot be built after upgrading 7.3.0.
- After Enabling "post_asset_folder: true", Only One Format of Posts Can Be Rendered HOT 3
- markdown文件里的HTML标签不会被正确地渲染 HTML tags in markdown files are not rendered correctly
- Support to load ES module plugin HOT 6
- hexo init出现错误
- 如果能够支持主题内部的TS编译就太好了 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.