theme-next / hexo-theme-next

Elegant and powerful theme for Hexo.
https://theme-next.org
Other
8.12k stars 2.05k forks source link

a very small feature: the avatar can be changed when mouse over it #1696

Closed sakebow closed 2 years ago

sakebow commented 2 years ago

PR Checklist

PR Type

What is the current behavior?

The avatar can be changed when mouse on it.

And also, the original avatar and the other avatar can both be defined in themes/next/_config.yml

Issue resolved: N/A

What is the new behavior?

it looks like this:

http://resources.sakebow.cn/markdown/avatar-hover-change.gif

How to use?

In NexT _config.yml:

# Sidebar Avatar
avatar:
  url: your_avatar_image
  # set another image so that your avatar will be changed when mouse over it
  # if configured as the same as `url`, it will look like nothing happened.
  url_changed: another_avatar_image

However, it's worthy mentioned that:

welcome[bot] commented 2 years ago

Thanks so much for opening your first PR here!

CLAassistant commented 2 years ago

CLA assistant check
All committers have signed the CLA.

sli1989 commented 2 years ago

and welcome to new repo: https://github.com/next-theme/hexo-theme-next

GitHub
GitHub - next-theme/hexo-theme-next: 🎉 Elegant and powerful theme for Hexo.
🎉 Elegant and powerful theme for Hexo. Contribute to next-theme/hexo-theme-next development by creating an account on GitHub.
sakebow commented 2 years ago

Oh, awesome! Thanks a lot for new repo! I'll check it.