Pinterest Pin It按钮在Blogger上

时间:2014-12-19 14:43:24

标签: blogger blogspot

我正在尝试在链接中的+ data:post.url和+ data:blog.postImageUrl博客数据标记之间添加& media =,以便它可以与Pinterest一起使用。

当我使用+ data:post.url时,链接有效:

<a data-pin-color='red' data-pin-config='beside' expr:href='&quot;http://pinterest.com/pin/create/button/?url=&quot;+data:post.url'><img src='//assets.pinterest.com/images/pidgets/pinit_fg_en_rect_red_20.png'/></a>

当我尝试添加图片参考时,它不起作用:

<a data-pin-color='red' data-pin-config='beside' expr:href='&quot;http://pinterest.com/pin/create/button/?url=&quot;+data:post.url+&quot;&amp;media=&quot;+data:blog.postImageUrl'>

这是原始的Pinterest代码(找到here):

<a href="https://www.pinterest.com/pin/create/button/
    ?url=http%3A%2F%2Fwww.flickr.com%2Fphotos%2Fkentbrew%2F6851755809%2F
    &media=http%3A%2F%2Ffarm8.staticflickr.com%2F7027%2F6851755809_df5b2051c9_z.jpg
    &description=Next%20stop%3A%20Pinterest"
    data-pin-do="buttonPin"
    data-pin-config="above">
    <img src="//assets.pinterest.com/images/pidgets/pin_it_button.png" />
</a>

任何想法或见解?

1 个答案:

答案 0 :(得分:0)

尝试data:postFirstImageUrl数据标记(仅限帖子)。