# hexo-tag-search-link

> A hexo tag plugin, which enables you to insert links to search specific content.

Latest version **1.0.1** (published 2017-02-05) · BSD-3-Clause license · 0 weekly downloads

## Install

```sh
npm install hexo-tag-search-link
pnpm add hexo-tag-search-link
yarn add hexo-tag-search-link
bun add hexo-tag-search-link
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2017-02-05 |
| First published | 2017-02-03 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | r12f |
| Maintainers | r12f |
| Keywords | hexo, blog, tag, search, google, baidu, bing, yahoo, wiki, github |

## Links

- npm: https://www.npmjs.com/package/hexo-tag-search-link
- Repository: https://github.com/r12f/hexo-tag-search-link
- Homepage: https://github.com/r12f/hexo-tag-search-link#readme
- Issues: https://github.com/r12f/hexo-tag-search-link/issues
- npm.io page: https://npm.io/package/hexo-tag-search-link

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2017-02-05
- 1.0.0 — 2017-02-03

## README

# hexo-tag-search-link

[![npm version](https://badge.fury.io/js/hexo-tag-search-link.svg)](http://badge.fury.io/js/hexo-tag-search-link)

A hexo tag plugin for creating search links with specified search engine and content.

## Installation

``` bash
$ npm install hexo-tag-search-link --save
```

## Usage

To search the content, we can use search tag, which uses the default search engine, and search_with tag, which uses the specified search engine. Here are some examples:

With default search engine:
```
{% search "Hello World" %}
```

With specified search engine:
```
{% search_with google "Hello World" %}
{% search_with bing "Hello World" %}
{% search_with baidu "Hello World" %}
{% search_with yahoo "Hello World" %}
{% search_with wiki "Hello World" %}
{% search_with wiki "你好，世界" zh %}
{% search_with msdn "Hello World" %}
{% search_with github "Hello World" %}
{% search_with github_code generateSearchLink r12f/hexo-tag-search-link %}
```

We can also specify what to show with search_alt and search_alt_with tags. The tag works almost exactly the same. The only difference is that they have an end tag. Here are 2 examples:

With alternated things to show:
```
{% search_alt "Hello World (maybe not)" %}Hello World{% endsearch_alt %}
```

With specified search engine and alternated things to show:
```
{% search_alt_with google "Hello World (maybe not)" %}Hello World{% endsearch_alt_with %}
```

Config:
```
# Search link
search_link:
    default_engine: google
```

## License

BSD v3

---
_Source: https://npm.io/package/hexo-tag-search-link · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
