Skip to content

Instantly share code, notes, and snippets.

Avatar

Ryuichi.N nukos

  • Tokyo/Japan
View GitHub Profile
@nukos
nukos / amazon.rb
Last active Aug 29, 2015 — forked from upvalue/amazon.rb
JP Amazon Associate
View amazon.rb
# amazon.rb - amazon affiliate links for jekyll
# assumes that you have a configuration variable called 'amazon_associate_id' with your associate id
# usage: {{ asin | amazon_product_href }}
# returns url of a product
# usage: {{ asin | amazon_image_href: 'M' }}
# returns image of the product, size argument can be S, M, or L, default M
# usage: {{ asin | amazon_product: 'A Product' }}
You can’t perform that action at this time.