diff options
author | Lutong Chen <ertuil98@foxmail.com> | 2020-05-26 16:17:46 +0300 |
---|---|---|
committer | Lutong Chen <ertuil98@foxmail.com> | 2020-05-26 16:17:46 +0300 |
commit | 6f452b4bf779ac0553b9db06837b6d706406fde1 (patch) | |
tree | 17ad7b4db71683a11a8f7c453dec5bfbb1856eaf | |
parent | 5af5e8437f638d6ab365848fbf73f8327c6ef37b (diff) |
add safeHTML
-rw-r--r-- | layouts/index.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/index.html b/layouts/index.html index f7931ec..bf4e87b 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -47,7 +47,7 @@ <script type="text/javascript"> $("#search").keyup(function(event){ if(event.keyCode ==13){ - document.location = "https://www.google.com/search?q=" + $("#search").val(); + "+site%3A{{$.Site.BaseURL}}" + document.location = "https://www.google.com/search?q=" + $("#search").val(); + "+site%3A{{$.Site.BaseURL | safeHTML}}" } }); </script> |