Giter Club home page Giter Club logo

Comments (4)

0x2E avatar 0x2E commented on May 15, 2024 1

涉及到的 Hexo 解析逻辑是这样的:

  1. /source/_posts 中读取文章内容渲染成HTML;
  2. /themes/Material-T/source/ 下的文件全部拷贝到网站根目录;

所以建议所有图片引用使用相对于根目录的 url ,比如我把图片放到 /themes/Material-T/source/here_is_my_img/ ,引用的时候链接应为 /here_is_my_img/***.jpg

from hexo-theme-fluid.

Alfxjx avatar Alfxjx commented on May 15, 2024 1

明白了,谢谢指导!

from hexo-theme-fluid.

0x2E avatar 0x2E commented on May 15, 2024

你好 @Alfxjx ,我没能复现出报错,尝试一下 hexo cleanheox g

from hexo-theme-fluid.

Alfxjx avatar Alfxjx commented on May 15, 2024

1,您好,我从vscode换到了webstorm这个error就消失了。

2,之前主要就是index页面的文章缩略图不显示,后来我把front-matter里面的index_img的地址从../source/_posts改到了一个新建的../source/post_img,就可以显示了。想问一下缩略图的地址是必须要在source/post_img下面吗

from hexo-theme-fluid.

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.