15 lines
766 B
HTML
15 lines
766 B
HTML
|
{% if post %}
|
||
|
{% assign item = post %}
|
||
|
{% else %}
|
||
|
<!-- index or other page -->
|
||
|
{% assign item = page %}
|
||
|
{% endif %}
|
||
|
|
||
|
{% capture flattr_url %}{{ site.url }}{{ item.url }}{% endcapture %}
|
||
|
|
||
|
{% capture flattr_title %}{% if item.title %}{{ item.title }}{% else %}{{ site.title }}{% endif %}{% endcapture %}
|
||
|
|
||
|
{% capture flattr_description %}{% if item.description %}{{ item.description}}{% else index == true %}{{ site.description }}{% endif %}{% endcapture %}
|
||
|
|
||
|
{% capture flattr_param %}url={{ flattr_url | cgi_escape }}&user_id={{site.flattr_user | cgi_escape }}&title={{ flattr_title | cgi_escape }}&category=text&description={{ flattr_description | truncate: 1000 | cgi_escape }}&tags={{ item.categories | join: "," | cgi_escape }}{% endcapture %}
|