Created
November 4, 2013 22:07
-
-
Save fredryk/7309980 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {% if template == 'article' and article.content contains '<img' %} | |
| {% assign src = article.content | split: 'src="' %} | |
| {% assign src = src[1] | split: '"' | first | replace: '//cdn', 'http://cdn' | replace: 'http:http://', 'http://' %} | |
| <li style="margin-left:10px; width:80px"> | |
| <a href="http://pinterest.com/pin/create/button/?url={{ shop.url }}{{ product.url }}&description={{ article.title }}&media={{ src }}" class="pin-it-button" count-layout="horizontal"><img border="0" src="//assets.pinterest.com/images/PinExt.png" title="Pin It" /></a> | |
| <script type="text/javascript" src="//assets.pinterest.com/js/pinit.js"></script> | |
| </li> | |
| {% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment