Permalink
Fetching contributors…
Cannot retrieve contributors at this time
51 lines (42 sloc) 1.67 KB
{% assign top = 0 %}
{% for tag in page.tags %}
{% assign leanpub = '' %}
{% assign amazon = '' %}
{% if tag == "combinators" %}
{% assign amazon = 'B00A1P096Y' %}
{% assign leanpub = '/combinators' %}
{% elsif tag == "computation" %}
{% assign amazon = '1449329276' %}
{% elsif tag == "gameoflife" %}
{% assign amazon = '048649098X' %}
{% elsif tag == "surrealnumbers" %}
{% assign amazon = '0201038129' %}
{% elsif tag == "funjs" %}
{% assign amazon = '1449360726' %}
{% elsif tag == "effectivejs" %}
{% assign amazon = '0321812182' %}
{% elsif tag == "LiSP" %}
{% assign amazon = '0521545668' %}
{% elsif tag == "allonge" %}
{% assign leanpub = '/javascriptallongesix' %}
{% elsif tag == "spessore" %}
{% assign leanpub = '/javascript-spessore' %}
{% elsif tag == "javascript" %}
{% assign leanpub = '/b/es6fromfundamentalstofeatures' %}
{% assign amazon = '0321812182' %}
{% elsif tag == "coffeescript" %}
{% assign leanpub = '/coffeescript-ristretto' %}
{% assign amazon = '1449321054' %}
{% elsif tag == "ruby" %}
{% assign leanpub = '/combinators' %}
{% assign amazon = 'B00A376YAK' %}
{% elsif tag == "management" %}
{% assign leanpub = '/shippingsoftware' %}
{% elsif tag == "programming" %}
{% assign leanpub = '/b/coffeekestrelsandcode' %}
{% endif %}
{% if leanpub != '' %}
<iframe style="position:relative;float:right;left:180px;top:{{ top }}px;margin-left:-160px;" width="160" height="430" src="https://leanpub.com{{ leanpub }}/embed" frameborder="0" allowtransparency="true"></iframe>
{% capture top %}{{ top | plus:450 }}{% endcapture %}
{% endif %}
{% endfor %}