Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kazu69/hexo-tag-hatenabookmark
hexo hatenabookmark tag plugin
https://github.com/kazu69/hexo-tag-hatenabookmark
Last synced: 19 days ago
JSON representation
hexo hatenabookmark tag plugin
- Host: GitHub
- URL: https://github.com/kazu69/hexo-tag-hatenabookmark
- Owner: kazu69
- Created: 2015-06-18T09:14:01.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-31T21:39:09.000Z (over 7 years ago)
- Last Synced: 2024-10-13T15:03:03.745Z (24 days ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/hexo-tag-hatenabookmark
- Size: 14.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
hexo-tag-hatenabookmark plugin
================[![Build Status](https://drone.io/github.com/kazu69/hexo-tag-hatenabookmark/status.png)](https://drone.io/github.com/kazu69/hexo-tag-hatenabookmark/latest) [![npm version](https://badge.fury.io/js/hexo-tag-hatenabookmark.svg)](http://badge.fury.io/js/hexo-tag-hatenabookmark)
[![Build Status](https://travis-ci.org/kazu69/hexo-tag-hatenabookmark.svg?branch=v0.0.7)](https://travis-ci.org/kazu69/hexo-tag-hatenabookmark)> [Hexo] embed code snippet [Hatena Bookmark](http://b.hatena.ne.jp/)
## Install
Install using [npm](https://npmjs.org/package/hexo-tag-hatenabookmark).
```
$ npm install hexo-tag-hatenabookmark --save
```
## Usage### In theme file
```
# theme ejs file
<%- hatenabookmark(page.permalink, page.title, 'standard-balloon') %>
```
### In source file```
# post markdown file
{% hatenabookmark permalink-your-post title-your-post standard-balloon %}
```## Options
hatenabookmark(url, title, type, lang)
- url: Bookmarked url.
- title: Bookmarked title.
- type: Bookmark button type
- lang: Bookmark button language (```ja``` or ```en```)Bookmark button type is ```simple```, ```simple-balloon```, ```standard-balloon```, ```standard-noballoon``` and ```vertical-balloon```.
If you chose ```simple``` or ```simple-balloon``` bookmark button , it is not possible to select a bookmark language. ( This will always be ```ja```)
More information see [Hatena Bookmark Button](http://b.hatena.ne.jp/guide/bbutton) page.
## License
MIT © kazu69