A hexo tag plugin to embed yelp businesses in posts/pages.
Also works as a helper for layouts.
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.
{% yelp [business_id] %}
Example:
{% yelp mcdonalds-minneapolis-46 %}
{%- yelp("business_id") %}
Example:
{%- yelp("mcdonalds-minneapolis-46") %}
OR:
{%- yelp(post.yelp_id) %}
If you put yelp_id in the posts front-matter