Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aleks/jekyll_amazon_product_tag
Liquid tag to show amazon product previews (with locally cached images) in blog posts
https://github.com/aleks/jekyll_amazon_product_tag
blogging jekyll jekyll-blog jekyll-ecosystem jekyll-plugin ruby
Last synced: 19 days ago
JSON representation
Liquid tag to show amazon product previews (with locally cached images) in blog posts
- Host: GitHub
- URL: https://github.com/aleks/jekyll_amazon_product_tag
- Owner: aleks
- Created: 2018-01-30T12:34:38.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-30T12:49:51.000Z (almost 7 years ago)
- Last Synced: 2024-12-09T13:24:17.784Z (about 2 months ago)
- Topics: blogging, jekyll, jekyll-blog, jekyll-ecosystem, jekyll-plugin, ruby
- Language: Ruby
- Size: 9.77 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# jekyll_amazon_product_tag
Liquid tag to show amazon product previews (with locally cached images) in blog posts## Install gems
```gem install vacuum hash_dot```## Install plugin
Add `jekyll_amazon_product_tag.rb` to your `_plugins` folder.## Create local cache folder
1. Create a new `products` directory in your jekyll root path.
2. Add an empty `products.yml` file to it.Product images will be downloaded to this folder
## AWS credentials
Add your AWS credentials to your _config.yml
```
amazon_product:
aws_access_key_id: 'ACCESS_KEY_ID'
aws_secret_access_key: 'SECRET_ACCESS_KEY'
associate_tag: 'ASSOCIATE_TAG'
```
## Add Product previews to your posts
Liquid Tag:
```
{% amazon_product AMAZON_ID %}
```If the URL is `https://www.amazon.com/Practical-Object-Oriented-Design-Ruby-Addison-Wesley/dp/0321721330/` then `0321721330` will be the AMAZON_ID.