blog/source/_includes/custom/head.html

36 lines
1.6 KiB
HTML

{% if site.flattr_user %}
<script type="text/javascript">
/* <![CDATA[ */
(function() {
var s = document.createElement('script'), t = document.getElementsByTagName('script')[0];
s.type = 'text/javascript';
s.async = true;
s.src = 'http://api.flattr.com/js/0.6/load.js?mode=auto';
t.parentNode.insertBefore(s, t);
})();
/* ]]> */
</script>
{% include flattr_param.html %}
<link rel="payment" href="https://flattr.com/submit/auto?{{ flattr_param }}" type="text/html" />
{% endif %}
{% capture canonical %}{{ site.url }}{% if site.permalink contains '.html' %}{{ page.url }}{% else %}{{ page.url | remove:'index.html' }}{% endif %}{% endcapture %}
{% capture ogtype %}{% if page.title %}article{% else %}blog{% endif %}{% endcapture %}
<!-- twitter card -->
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="@Mic_92">
<meta name="twitter:creator" content="@Mic_92">
<meta name="twitter:title" content="{% if page.title %}{{ page.title }} - {% endif %}{{ site.title }}">
<meta name="twitter:url" content="{{ canonical }}">
<meta name="twitter:description" content="{{ description | strip_html | condense_spaces | truncate:150 }}">
<!-- open graph -->
<meta property="og:title" content="{% if page.title %}{{ page.title }} - {% endif %}{{ site.title }}"/>
<meta property="og:type" content="{{ ogtype }}"/>
<meta property="og:url" content="{{ canonical }}"/>
<meta property="og:site_name" content="Blog of Jörg Thalheim (~/git/blog)"/>
<meta property="og:description" content="{{ description | strip_html | condense_spaces | truncate:150 }}"/>