From a5d1791b14d0f87ae780c723cd11ca91c16281ba Mon Sep 17 00:00:00 2001 From: curben Date: Fri, 7 Jun 2019 18:39:51 +0930 Subject: [PATCH] feat(search): replace gitlab search with duckduckgo todo: algolia --- source/_headers | 2 +- themes/typing/layout/_partial/header.ejs | 22 ++++++++++++++++------ themes/typing/source/js/typing.js | 23 ++++++++++++++++------- 3 files changed, 33 insertions(+), 14 deletions(-) diff --git a/source/_headers b/source/_headers index c87df0f..63c2725 100644 --- a/source/_headers +++ b/source/_headers @@ -3,7 +3,7 @@ X-XSS-Protection: 1; mode=block X-Content-Type-Options: nosniff Content-Language: en - Content-Security-Policy: default-src 'self'; child-src 'none'; connect-src 'none'; font-src 'none'; frame-src 'none'; img-src https: 'self'; manifest-src 'none'; media-src 'none'; object-src 'none'; prefetch-src 'none'; script-src https://cdnjs.cloudflare.com 'self'; style-src https://cdnjs.cloudflare.com 'self'; worker-src 'none'; base-uri 'none'; form-action 'none'; block-all-mixed-content; frame-ancestors 'none' + Content-Security-Policy: default-src 'self'; child-src 'none'; connect-src 'none'; font-src 'none'; frame-src 'none'; img-src https: 'self'; manifest-src 'none'; media-src 'none'; object-src 'none'; prefetch-src 'none'; script-src https://cdnjs.cloudflare.com 'self'; style-src https://cdnjs.cloudflare.com 'self'; worker-src 'none'; base-uri 'none'; form-action https://duckduckgo.com; frame-ancestors 'none'; block-all-mixed-content Referrer-Policy: no-referrer Strict-Transport-Security: max-age=31536000 Feature-Policy: accelerometer 'none'; autoplay 'none'; camera 'none'; document.domain 'none'; display-capture 'none'; encrypted-media 'none'; geolocation 'none'; gyroscope 'none'; magnetometer 'none'; microphone 'none'; midi 'none'; payment 'none'; sync-xhr 'none'; usb 'none' \ No newline at end of file diff --git a/themes/typing/layout/_partial/header.ejs b/themes/typing/layout/_partial/header.ejs index 5293034..8016b04 100644 --- a/themes/typing/layout/_partial/header.ejs +++ b/themes/typing/layout/_partial/header.ejs @@ -6,14 +6,19 @@ <% } %>
- - +
+ + + + + - Search + Search using DuckDuckGo Search icon +
<%/* Nav menu for mobile */%> @@ -24,14 +29,19 @@