Skip to content

Commit

Permalink
Direct to all in one page for search (#131)
Browse files Browse the repository at this point in the history
* remove search-form from header

* add aio link

* hard label search

* change search to button

* remove list formatting

* make button text descriptive

* Update inst/pkgdown/templates/header.html

Make "Search in this lesson's "all in one" page" translatable.

* only show search for not overview
  • Loading branch information
ErinBecker authored Apr 9, 2024
1 parent bc84585 commit 4ded22f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions inst/pkgdown/templates/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@
{{/more}}
</ul>
</div>
<!--
<form class="d-flex col-md-2 search-form">
<fieldset disabled>
<input class="form-control me-2 searchbox" type="search" placeholder="{{ translate.Search }}" aria-label="{{ translate.Search }}">
Expand All @@ -189,6 +190,10 @@
</button>
</fieldset>
</form>
-->
{{^overview}}
<a class="btn btn-primary" href="{{#site}}{{root}}{{/site}}aio.html" role="button">{{ translate.SearchButton }}</a>
{{/overview}}
</div><!--/div.container-fluid -->
</nav>

Expand Down

0 comments on commit 4ded22f

Please sign in to comment.