ahonn / hexo-theme-even

:rocket: A super concise theme for Hexo
https://ahonn.github.io/hexo-theme-even/
MIT License
1.37k stars 212 forks source link

Add nunjucks support? #293

Closed masterrite closed 10 months ago

masterrite commented 1 year ago

hexo-renderer-swig is deprecated. Is there any chance to add support for nunjucks renderer? Thanks

zeed-w-beez commented 1 year ago

@masterrite I changed swig to ejs: https://zeed-w-beez.github.io/2023/10/10/hexo/swig-to-ejs/

masterrite commented 1 year ago

@zeed-w-beez Thanks very much! Do you know how I can change the pulsing heart in the footer into my custom favicon in sources? I tried to point to it with "site/source/favicon.ico" but that didn't work

ahonn commented 1 year ago

@zeed-w-beez It looks great, can you open a PR to merge it in?

zeed-w-beez commented 10 months ago

@zeed-w-beez It looks great, can you request a PR to merge it in?

抱歉没注意到你发的消息。 PR:https://github.com/ahonn/hexo-theme-even/pull/294

zeed-w-beez commented 10 months ago

非常感谢你设计的这个主题!

zeed-w-beez commented 10 months ago

@zeed-w-beez Thanks very much! Do you know how I can change the pulsing heart in the footer into my custom favicon in sources? I tried to point to it with "site/source/favicon.ico" but that didn't work

image

masterrite commented 10 months ago

@zeed-w-beez Thanks very much! Do you know how I can change the pulsing heart in the footer into my custom favicon in sources? I tried to point to it with "site/source/favicon.ico" but that didn't work

image

Thanks again!

ahonn commented 10 months ago

@zeed-w-beez Thank you for your contribution.

The theme has now been updated to remove the dependency on hexo-renderer-swig and instead uses ejs for template rendering. Additionally, it has been changed to use hexo-renderer-dartsass to avoid the need for node-gyp compilation.