Closed prcolaco closed 1 year ago
Is it possible to reproduce the bug with Hexo@4.2.1 ? I tested it in the local environment (macOS 10.15 & Node.js 12) and no bugs appeared. Thanks.
See also https://github.com/ahonn/hexo-theme-even/issues/261
I will close this Issue since it cannot be reproduced and has not received any new responses for a long time. This problem may be related to a race condition. If you can reproduce this issue on a newer version of Hexo, please feel free to let me know.
Environment Info
Platform: Mac OSX v10.14.2
Node version(
node -v
): v10.14.2Your site
_config.yml
(Optional): Not relatedYour theme
_config.yml
(Optional): Not relatedHexo and Plugin version(
npm ls --depth 0
):BUG Report
BUG description In a project I am working on using hexo I installed a theme called Strata (https://github.com/livingos/hexo-theme-strata). This theme has an image at /themes/strata/source/images/bg.jpg and when I add a /source/images/bg.jpg it replaces the one in the theme with my projects image. This is the correct behaviour, right? Then I made some changes in the theme layouts and added another image /themes/strata/source/images/map.jpg and a substitute in my project in /source/images/map.jpg and this time it gets the one in the theme instead of the one in the project when generating... I suppose this is not the correct way to process the files, right? It seems that the precedence of files is kind of random... after that I designed a new favicon.ico and added it to the project /source/images/ folder and it worked, then after generate it stopped working and the original hexo favicon started to show again... really strange behaviour.
The way to reproduce This is an intermittent problem. Seems that it works as expected first time (just while
hexo server
was already running), but after anhexo clean && hexo generate && hexo server
it stops working.Log with hexo --debug