1.1.0 • Published 8 years ago

hexo-tag-yelp v1.1.0

Weekly downloads
1
License
ISC
Repository
github
Last release
8 years ago

About

A hexo tag plugin to embed yelp businesses in posts/pages.
Also works as a helper for layouts.
Sample image

Installation

npm install --save hexo-tag-yelp

Must add dependency to package.json:

...
"dependencies": {
  "hexo-yelp-tag": "^1.0.8",
...
}

Must add yelp API token to __config.yml.

...
yelp:
  key: <API token>

Get a yelp token here.

Also, you must contain bootstrap somewhere in your project for the styling to be correct.

Usage

Tag

{% yelp [business_id] %}

Example:

{% yelp mcdonalds-minneapolis-46 %}

Helper

{%- yelp("business_id") %} 

Example:

{%- yelp("mcdonalds-minneapolis-46") %}

OR:

{%- yelp(post.yelp_id) %}

If you put yelp_id in the posts front-matter

1.1.0

8 years ago

1.0.9

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago