File tree Expand file tree Collapse file tree 4 files changed +8
-7
lines changed
Expand file tree Collapse file tree 4 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 1- <!--
1+ {{/*
22Copied from Docsy with the addition of the search-input and the customSearch block.
3- Revisit this once https://github.com/google/docsy/issues/2194 and https://github.com/google/docsy/pull/1512 are closed
4- -->
3+ Revisit this if / when either of https://github.com/google/docsy/issues/2194 and https://github.com/google/docsy/pull/1512 are closed
4+ */}}
55{{ define "main" }}
66<!--From shortcodes/site-searchbar.html which is used in the home page-->
77< div class ="col-sm-6 col-md-6 col-lg-6 mx-auto py-3 ">
Original file line number Diff line number Diff line change 3333{{ $jsSearch := resources.Get "js/search.js" | resources.ExecuteAsTemplate "js/search.js" .Site.Home }}
3434{{ if .Site.Params.offlineSearch }}
3535{{ $jsSearch = resources.Get "js/offline-search.js" }}
36- <!-- Revisit this once https://github.com/google/docsy/issues/2194 and https://github.com/google/docsy/pull/1512 are closed -->
36+ {{/* Revisit this if / when either of https://github.com/google/docsy/issues/2194 and https://github.com/google/docsy/pull/1512 are closed */}}
3737{{ else if .Site.Params.customSearch }}
3838{{ $jsSearch = resources.Get "js/custom-search.js" }}
3939{{ end }}
Original file line number Diff line number Diff line change 1- <!-- Revisit this once https://github.com/google/docsy/issues/2194 and https://github.com/google/docsy/pull/1512 are closed -->
1+ {{/* Revisit this if / when either of https://github.com/google/docsy/issues/2194 and https://github.com/google/docsy/pull/1512 are closed */}}
22{{ $lang := .Site.Language.Lang }}
33{{ $searchFile := printf "content/%s/search.md" $lang }}
44
Original file line number Diff line number Diff line change 1- <!--
1+ {{/*
22Copied from Docsy with the addition of the customSearch block.
33This can be deleted once https://github.com/google/docsy/issues/2194 and https://github.com/google/docsy/pull/1512 are closed
4- -->
4+ and the site has been updated to incorporate the upstream change.
5+ */}}
56{{ if .Site.Params.gcs_engine_id -}}
67< div class ="td-search ">
78 < div class ="td-search__icon "> </ div >
You can’t perform that action at this time.
0 commit comments