Skip to content

YunYouJun/hexo-tag-common

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hexo-tag-common

npm jsdelivr CDN

Common tags for hexo.

Demo: tag-common | yun

Install

You need to make sure your hexo is v5.2.0 or above.

npm install hexo-tag-common
# yarn add hexo-tag-common

Config

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

Feature

  • Tabs
    • iconify

Tabs

You can use icon like this by @ri:home-4-line.

Use with icon

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 %}

Reference