Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yunyoujun/hexo-tag-common

🏷️ Common tags for hexo.
https://github.com/yunyoujun/hexo-tag-common

hexo hexo-tag plugin

Last synced: 2 months ago
JSON representation

🏷️ Common tags for hexo.

Awesome Lists containing this project

README

        

# hexo-tag-common

[![npm](https://img.shields.io/npm/v/hexo-tag-common)](https://www.npmjs.com/package/hexo-tag-common)
[![jsdelivr CDN](https://data.jsdelivr.com/v1/package/npm/hexo-tag-common/badge)](https://www.jsdelivr.com/package/npm/hexo-tag-common)

Common tags for hexo.

> Demo: [tag-common | yun](https://www.yunyoujun.cn/yun/tag-common.html)

## Install

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

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

## Config

Set it in hexo `_config.yml`.

```yaml
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

- [x] Tabs
- iconify

### Tabs

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

![Use with icon](https://user-images.githubusercontent.com/25154432/172246743-2c84d6df-927b-4678-89b4-052d2664109f.png)

> You should have imported iconify, more info see [Docs | Iconify](https://docs.iconify.design/).
> You can refer [layout/_third-party/iconify.pug | hexo-theme-yun](https://github.com/YunYouJun/hexo-theme-yun/blob/dev/packages/hexo-theme-yun/layout/_third-party/iconify.pug).

```md
{% tabs First unique name %}

**This is Tab 1.**

**This is Tab 2.**

**This is Tab 3.**

{% endtabs %}
```

## Reference

- [tag-plugins | next](https://theme-next.js.org/docs/tag-plugins/)

## [Sponsors](https://sponsors.yunyoujun.cn)