jekyll-store-visited
v0.1.0
Published
Recently Visited plugin for Jekyll-Store Engine
Downloads
1
Readme
Jekyll-Store/Visited
Recently Visited plugin for Jekyll-Store Engine.
Actions
visit
Adds product to the top of the visited list.
Args:
name
- Name of the product.
Example:
JekyllStoreEngine.Actions.visit({ name: 'bag' });
setVisitedLimit
Set the limit for the number of products in visited list.
Args:
limit
Example:
JekyllStoreEngine.Actions.setVisitedLimit({ limit: 5 });
VisitedStore
The products that have been visited recently.
Example output:
{
visited: Immutable({
{ name: 'Jumper', price: 24.30 }),
{ name: 'Cardigan', price: 21.45 }),
{ name: 'Pullover', price: 13.90 })
})
}
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request