Skip to content
Snippets Groups Projects
Unverified Commit 91a894c0 authored by Matt Wang's avatar Matt Wang Committed by GitHub
Browse files

Add docs for custom search placeholder (#939)


Follow-up to #613. Relatively self-explanatory!

Co-authored-by: default avatarPeter Mosses <18308236+pdmosses@users.noreply.github.com>
parent e03483d8
No related branches found
No related tags found
No related merge requests found
......@@ -166,3 +166,29 @@ Content added to this file appears at the top of every page's main content betwe
`_includes/nav_footer_custom.html`
Any content added to this file will appear at the bottom left of the page below the site's navigation. By default an attribution to Just the Docs is displayed which reads, `This site uses Just the Docs, a documentation theme for Jekyll.`.
### Custom Search Placeholder
`_includes/search_placeholder_custom.html`
Content added to this file will replace the default placeholder text in the search bar (and its `aria-label`), after stripping HTML and leading/trailing whitespace. By default, the content of the include is:
{% raw %}
```liquid
Search {{site.title}}
```
{% endraw %}
Override this file to render a custom placeholder. One common use-case is internationalization; for example,
{% raw %}
```liquid
Chercher notre site
```
{% endraw %}
would make the placeholder text "Chercher notre site". [Liquid code](https://jekyllrb.com/docs/liquid/) (including [Jekyll variables](https://jekyllrb.com/docs/variables/)) is also supported.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment