1
0
mirror of https://github.com/mbirth/wiki.git synced 2024-12-25 23:04:06 +00:00

Prepare Google+ badge. Load CSE script asynchronously.

This commit is contained in:
Markus Birth 2015-06-29 00:33:52 +02:00
parent 415d1e811e
commit 7d950ce7ea
2 changed files with 16 additions and 1 deletions

View File

@ -0,0 +1,15 @@
<!-- FROM: https://developers.google.com/+/web/badge/ -->
<!-- Place this tag where you want the widget to render. -->
<div class="g-person" data-href="//plus.google.com/u/0/114054672576929802335" data-layout="landscape" data-rel="author"></div>
<!-- Place this tag after the last widget tag. -->
<script type="text/javascript">
window.___gcfg = {lang: 'en-GB'};
(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/platform.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
</script>

View File

@ -26,7 +26,7 @@
{% if page.toc %} {% if page.toc %}
<script src="{{ site.url }}/bower_components/jquery.toc/jquery.toc.js" type="text/javascript"></script> <script src="{{ site.url }}/bower_components/jquery.toc/jquery.toc.js" type="text/javascript"></script>
{% endif %} {% endif %}
<script src="{{ site.url }}/javascripts/gcse.js" type="text/javascript"></script> <script src="{{ site.url }}/javascripts/gcse.js" type="text/javascript" async></script>
<script src="{{ site.url }}/javascripts/comments.js" type="text/javascript"></script> <script src="{{ site.url }}/javascripts/comments.js" type="text/javascript"></script>
</head> </head>
<body itemscope itemtype="http://schema.org/Blog"> <body itemscope itemtype="http://schema.org/Blog">