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

Try GCSE example code to make it work.

This commit is contained in:
Markus Birth 2016-12-19 12:22:18 +01:00
parent dca60d8bd3
commit 6cd2b20f41

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"></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">
@ -44,7 +44,19 @@
</section> </section>
</div> </div>
<div id="headerright"> <div id="headerright">
<script>
(function() {
var cx = '005859900804634181508:3bt_l7jyk2e';
var gcse = document.createElement('script');
gcse.type = 'text/javascript';
gcse.async = true;
gcse.src = 'https://cse.google.com/cse.js?cx=' + cx;
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(gcse, s);
})();
</script>
<gcse:search></gcse:search> <gcse:search></gcse:search>
</div> </div>
</div> </div>
</header> </header>