Skip to content

Commit

Permalink
add 谷歌站内搜索
Browse files Browse the repository at this point in the history
  • Loading branch information
marquistj13 committed Sep 29, 2017
1 parent 180974e commit 223c7fc
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion _layouts/default.html
Expand Up @@ -4,13 +4,30 @@
{% include head.html %}

<body class="index">

{% include header.html %}
<!-- {% include docs_header.html %} -->
<!-- {% if page.title %}
{% include banner.html %}
{% endif %} -->


<!-- 谷歌站内搜索 -->
<li style="width:30%;margin: 0 auto;">
<script>
(function() {
var cx = '002598292490754315460:zj8g_xont2y';
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>
</li>


{{ content }}

{% include footer.html %}
Expand Down

0 comments on commit 223c7fc

Please sign in to comment.