hexo-tag-yelp

1.1.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i hexo-tag-yelp

Weekly Downloads

2

Version

1.1.0

License

ISC

Last publish

Collaborators

  • dtreul