Skip to content

Commit

Permalink
Merge pull request #136 from carpentries/search-instructor-aio
Browse files Browse the repository at this point in the history
Make "Search All in One" aware of learner/instructor distinction
  • Loading branch information
froggleston authored May 21, 2024
2 parents 9d98f8c + 47dda7d commit 7068064
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 @@ -192,7 +192,12 @@
</form>
-->
{{^overview}}
{{#instructor}}
<a class="btn btn-primary" href="{{#site}}{{root}}{{/site}}instructor/aio.html" role="button" aria-label="{{ translate.SearchButton }}">{{ translate.SearchButton }}</a>
{{/instructor}}
{{^instructor}}
<a class="btn btn-primary" href="{{#site}}{{root}}{{/site}}aio.html" role="button" aria-label="{{ translate.SearchButton }}">{{ translate.SearchButton }}</a>
{{/instructor}}
{{/overview}}
</div><!--/div.container-fluid -->
</nav>
Expand Down

0 comments on commit 7068064

Please sign in to comment.