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:
parent
dca60d8bd3
commit
6cd2b20f41
@ -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">
|
||||||
<gcse:search></gcse:search>
|
<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>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
Loading…
Reference in New Issue
Block a user