blog/source/_includes/custom/head.html

36 lines
1.6 KiB
HTML
Raw Normal View History

2013-01-20 08:08:21 +00:00
{% 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;
2016-11-09 20:30:48 +00:00
s.src = '//api.flattr.com/js/0.6/load.js?mode=auto';
2013-01-20 08:08:21 +00:00
t.parentNode.insertBefore(s, t);
})();
/* ]]> */
</script>
2013-01-21 00:18:38 +00:00
{% include flattr_param.html %}
<link rel="payment" href="https://flattr.com/submit/auto?{{ flattr_param }}" type="text/html" />
2013-01-20 08:08:21 +00:00
{% endif %}
2013-02-04 22:50:52 +00:00
{% 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 }}"/>