Code Monkey home page Code Monkey logo

Comments (7)

ArcticLampyrid avatar ArcticLampyrid commented on July 28, 2024 2
  1. 使用ready事件则直接爆炸(好像没有被调用?)

需要使用 hexo.on 而不是 hexo.theme.on
另外似乎使用generateBefore event才能保证config被完整加载

request to reopen this issue

from kratos-rebirth.

ArcticLampyrid avatar ArcticLampyrid commented on July 28, 2024 1

直接这么做貌似有个问题
friends.js过程生成过程似乎会调用url_cdn
但是在generateBefore生成的话,这个cdn helper似乎不会被调用(可能和某些流程的顺序有关)
导致相关tag没被解析出来
这会导致没有指定头像的友联无法显示默认头像

image

from kratos-rebirth.

Candinya avatar Candinya commented on July 28, 2024

已知的问题:

  1. 导致友链页面和搜索页面在使用外部配置文件 (_config.kratos-rebirth.yml) 的情况下无法生成 已经解决

from kratos-rebirth.

Candinya avatar Candinya commented on July 28, 2024

2. 即使把配置文件放到里面去了,也会导致站点构建时候出现各种怪问题,例如我站现在文章底部的内容丢失掉了 = =

看来这个导致的问题非常严重了

修正:这个是由 Node 版本导致的,旧版不支持 ?. 操作符,建议升级到 v16 及更新的版本。

from kratos-rebirth.

Candinya avatar Candinya commented on July 28, 2024

暂时关闭该 issue ,有什么进展会再开启

from kratos-rebirth.

Candinya avatar Candinya commented on July 28, 2024
  1. 使用ready事件则直接爆炸(好像没有被调用?)

需要使用 hexo.on 而不是 hexo.theme.on 另外似乎使用generateBefore event才能保证config被完整加载

request to reopen this issue

好的,我试试 🎉

from kratos-rebirth.

Candinya avatar Candinya commented on July 28, 2024

成功了!非常感激 💖

from kratos-rebirth.

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.