Updated Google custom search master
authorNeil Smith <neil.git@njae.me.uk>
Wed, 25 Dec 2019 17:32:52 +0000 (17:32 +0000)
committerNeil Smith <neil.git@njae.me.uk>
Wed, 25 Dec 2019 17:32:52 +0000 (17:32 +0000)
partials/sidebar.hbs

index ba28636bf508802d230252441af6ec5d56a9faa2..a7e3cdd456c2c8d36e7d019790050617ef4d7441 100644 (file)
         <a class="c-sidebar-promotion-links__item" href="/about/">
             &bull; About
         </a>
-        <script>
-          (function() {
-            var cx = '013315344946609450626:fw_7x1auhwa';
-            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>
+        <script async src="https://cse.google.com/cse.js?cx=013315344946609450626:fw_7x1auhwa"></script>
+        <div class="gcse-search"></div>
     </div>
 </div>
\ No newline at end of file