mirror of
https://github.com/mbirth/wiki.git
synced 2024-11-09 13:16:45 +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 %}
|
||||
<script src="{{ site.url }}/bower_components/jquery.toc/jquery.toc.js" type="text/javascript"></script>
|
||||
{% 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>
|
||||
</head>
|
||||
<body itemscope itemtype="http://schema.org/Blog">
|
||||
@ -44,7 +44,19 @@
|
||||
</section>
|
||||
</div>
|
||||
<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>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
Loading…
Reference in New Issue
Block a user