Skip to content

Releases: DavidingPlus/hexo-theme-stun

v2.8.6

Choose a tag to compare

@DavidingPlus DavidingPlus released this 02 Jun 06:47

Release Notes

MarkDown 文档原生支持流程图 Mermaid。

自己突发奇想看能不能将其引入到 Hexo 的 Stun 主题中,参考工具:https://github.com/webappdevelp/hexo-filter-mermaid-diagrams。

另外修改了 Pjax 的加载逻辑,确保使用 Pjax 进行部分重载的时候能够覆盖到 Mermaid 渲染。

参考 PR:DavidingPlus/blog#4。

v2.8.5

Choose a tag to compare

@DavidingPlus DavidingPlus released this 20 Dec 12:16

Release Notes

Completed adaptation of the utterances comment system theme to the hexo stun theme.

new features

After the stun theme is changed, the utterances theme is also changed.

For users to use, we changed the variable theme to theme_light and theme_dark in config.yml. When the page loads for the first time, it will read the cookie to decide whether the theme is light or dark, and then initialize the utterances comment system with the right theme.

v2.8.4

Choose a tag to compare

@DavidingPlus DavidingPlus released this 19 Dec 08:05

Release Notes

Fixed bug of reward with pjax.

new features

The problem is wrong value of CONFIG.reward in the file themes\stun\layout_partials\config.pug, which should not be isShowReward but theme.reward.enable.

The CONFIG configuration is not dynamically updated. The meaning of isShowReward is whether the reward code is displayed not enabled. The reward code can be enabled but not displayed, so the isShowReward only works when the reward code is enabled meanwhile it is the post page when loading for the first time.

Therefore, when loading a non-post page such as the home page and entering the post page through pjax, the reward code button does not work, so it terms out that it needs one more refresh manually.

After all, whether is displayed or whether is enabled is different. Now it works well after modification.

v2.8.3

Choose a tag to compare

@DavidingPlus DavidingPlus released this 11 Dec 12:21

Release Notes

Try making a loading animation instead of loading bar using now.

new features

Replace loading bar with loading animation, which works with pjax.

The style reference article link is https://www.jianshu.com/p/808a647dc324

Change the content of file loading-animation.styl to customize your own loading animation.

v2.8.2

Choose a tag to compare

@DavidingPlus DavidingPlus released this 15 Aug 15:01

Release Notes

gitalk system always fail as log like Error: Network Error nowadays, more details see: gitalk/gitalk#506

new features

optimize code of gitalk.js, so that we can use our own proxy url to replace the original url

to generate our own proxy url, see https://github.com/Dedicatus546/cors-server

v2.8.1

Choose a tag to compare

@DavidingPlus DavidingPlus released this 12 Jul 06:12

Release Notes

forked from https://github.com/liuyib/hexo-theme-stun

new features

all cdn resources are locally stored, in which case the site is quicker to load

enjoy building your own site