Skip to content
This repository was archived by the owner on Aug 8, 2020. It is now read-only.

jekyll-store/visited

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jekyll-Store/Visited

Build Status

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

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

About

Recently Visited plugin for Jekyll-Store Engine.

Resources

Stars

Watchers

Forks

Packages

No packages published