diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2018-05-01 10:59:19 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2018-05-01 10:59:19 +0200 |
commit | 351187585adb2187b7f79e1d97b887febb236d51 (patch) | |
tree | 951fd19e0cd2284d680955b7da7eb36270dd5e50 | |
parent | 50a4e701cd5791b5400ca4c8b438b17baee351b0 (diff) | |
download | www-andreasbaumann-cc-351187585adb2187b7f79e1d97b887febb236d51.tar.gz www-andreasbaumann-cc-351187585adb2187b7f79e1d97b887febb236d51.tar.bz2 |
fixed conditional search jquery code to be used on /search only
-rw-r--r-- | content/dataprotection/_index.md | 7 | ||||
-rw-r--r-- | themes/new_theme/layouts/partials/menu.html | 2 | ||||
-rw-r--r-- | themes/new_theme/layouts/partials/widgets/elasticlunr_search.html | 2 |
3 files changed, 4 insertions, 7 deletions
diff --git a/content/dataprotection/_index.md b/content/dataprotection/_index.md index 9697dcb..2d92266 100644 --- a/content/dataprotection/_index.md +++ b/content/dataprotection/_index.md @@ -12,11 +12,6 @@ or Piwik. I do keep Apache log entries and firewall rules with IP, Date and User-Agent information for at most 7 days in order to fight attacks and spam. -Currently I'm using a Wordpress theme which uses Google fonts. I don't -think Google is using the IPs of the access for anything outside normal -attack and spam prevention. If you know more, I'm glad to hear about it. +Currently I'm using a Wordpress theme which uses Google fonts. For more information about Google Fonts see https://developers.google.com/fonts/faq, section "What does using the Google Fonts API mean for the privacy of my users?". -I'm also willing to cache Google fonts locally or remove them alltogether, -if required. Till then, if you are concerned, use lynx or w3m to browse my -pages in text mode. diff --git a/themes/new_theme/layouts/partials/menu.html b/themes/new_theme/layouts/partials/menu.html index fbeb352..df9c403 100644 --- a/themes/new_theme/layouts/partials/menu.html +++ b/themes/new_theme/layouts/partials/menu.html @@ -3,7 +3,7 @@ {{- if .Site.Menus.main }} {{- $currentNode := . }} {{- range sort .Site.Menus.main }} - {{ if ( not ( eq .Name "Data Protection And Privacy" ) ) }} + {{- if ( not ( eq .Name "Data Protection And Privacy" ) ) }} <li class="menu__item {{if or ($currentNode.IsMenuCurrent "main" .) ($currentNode.HasMenuCurrent "main" .) }}menu__item--active{{end}}"><a class="menu__link" href="{{ .URL }}">{{ .Name | upper }}</a></li> {{- end }} {{- end }} diff --git a/themes/new_theme/layouts/partials/widgets/elasticlunr_search.html b/themes/new_theme/layouts/partials/widgets/elasticlunr_search.html index c364156..9fa5b34 100644 --- a/themes/new_theme/layouts/partials/widgets/elasticlunr_search.html +++ b/themes/new_theme/layouts/partials/widgets/elasticlunr_search.html @@ -9,6 +9,7 @@ <input class="widget-search__submit" type="submit" value="Search"> </form> </div> +{{- if ( eq .URL "/search/" ) }} <script language="Javascript"> $( window ).load( function( ) { var paramsString = window.location.search; @@ -20,5 +21,6 @@ } ); </script> {{- end }} +{{- end }} |