Common tags for hexo.
Demo: tag-common | yun
You need to make sure your hexo is
v5.2.0
or above.
npm install hexo-tag-common
# yarn add hexo-tag-common
Set it in hexo _config.yml
.
tag_common:
cdn: https://fastly.jsdelivr.net/npm/ # enable CDN, default is https://fastly.jsdelivr.net/npm/
# which layout to use
# more info see https://hexo.io/api/injector.html#to-lt-string-gt
layout:
- post
- page
# - home
- Tabs
- iconify
You can use icon like this by @ri:home-4-line
.
You should have imported iconify, more info see Docs | Iconify.
You can refer layout/_third-party/iconify.pug | hexo-theme-yun.
{% tabs First unique name %}
<!-- tab First unique name 1 @ri:home-4-line -->
**This is Tab 1.**
<!-- endtab -->
<!-- tab Icon Test @ri:cloud-line -->
**This is Tab 2.**
<!-- endtab -->
<!-- tab -->
**This is Tab 3.**
<!-- endtab -->
{% endtabs %}