Skip to content

Commit

Permalink
[pull] main from carpentries:main (#15)
Browse files Browse the repository at this point in the history
* make search aware of instructor/learner

Fixes carpentries#135

* fix moustache logic

* fix moustache logic

* fix link

learner aio isn't in learner folder

---------

Co-authored-by: Erin Becker <[email protected]>
Co-authored-by: Robert Davey <[email protected]>
  • Loading branch information
3 people authored May 22, 2024
1 parent 984327b commit 08cf866
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 08cf866

Please sign in to comment.