Files
website/layouts/docs/search.html
T
Math Costa fcc03c3474 Bing search for China users (#9845)
* Updates readme's site building instructions

* Alters dockerfile to use extended hugo build

This is necessary for the pipes used w/ TOCSS since node-sass was dropped

* WIP for bing search implementation

* Implements Bing search instead of google

* Makes bing the default result provider and uses google and it's available

* Adds pagination to bing and replaces the $.get call with a $.ajax call

* front adjust

* bing limit pagination

* Adds break if there are less than 10 pages worth of results on bing search

* Adds proper google script ref and proper config id

* Removes console.log call
2018-08-16 11:47:07 -07:00

15 lines
298 B
HTML

{{ define "content" }}
<h1>{{ .Title }}</h1>
<gcse:searchresults-only linktarget="_parent">
<div id="bing-results-container">Fetching results..</div>
<div id="bing-pagination-container"></div>
</gcse:searchresults-only>
<script src="{{ "js/search.js" | relURL }}"></script>
{{ end }}