Skip to content

Commit

Permalink
Make logo path relative to root
Browse files Browse the repository at this point in the history
  • Loading branch information
Bisaloo committed Nov 8, 2023
1 parent cd14f5d commit 20761ef
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
1 change: 0 additions & 1 deletion inst/pkgdown/_pkgdown.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
template:
bootstrap: 5
includes:
before_title: '<a href="https://epiverse-trace.github.io/"><img src="logo_white.svg" id="logo" alt="Epiverse-TRACE"></a>'
in_header: |
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-XZ471458FQ"></script>
Expand Down
36 changes: 36 additions & 0 deletions inst/pkgdown/templates/navbar.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{{#navbar}}
<nav class="navbar fixed-top navbar-{{{type}}} navbar-expand-lg bg-{{{bg}}}">
<div class="container">
{{#includes}}{{{before_title}}}{{/includes}}
<a href="https://epiverse-trace.github.io/"><img src="{{#site}}{{root}}{{/site}}logo_white.svg" id="logo" alt="Epiverse-TRACE"></a>
<a class="navbar-brand me-2" href="{{#site}}{{root}}{{/site}}index.html">{{#site}}{{title}}{{/site}}</a>

<small class="nav-text {{#development}}text-{{version_label}}{{/development}} me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{#development}}{{version_tooltip}}{{/development}}">{{#package}}{{version}}{{/package}}</small>

{{#includes}}{{{before_navbar}}}{{/includes}}
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="{{#translate}}{{toggle_nav}}{{/translate}}">
<span class="navbar-toggler-icon"></span>
</button>

<div id="navbar" class="collapse navbar-collapse ms-3">
{{#left}}
<ul class="navbar-nav me-auto">
{{{.}}}
</ul>
{{/left}}

<form class="form-inline my-2 my-lg-0" role="search">
<input type="search" class="form-control me-sm-2" aria-label="{{#translate}}{{toggle_nav}}{{/translate}}" name="search-input" data-search-index="{{#site}}{{root}}{{/site}}search.json" id="search-input" placeholder="{{#translate}}{{search_for}}{{/translate}}" autocomplete="off">
</form>

{{#right}}
<ul class="navbar-nav">
{{{.}}}
</ul>
{{/right}}
</div>

{{#includes}}{{{after_navbar}}}{{/includes}}
</div>
</nav>
{{/navbar}}

0 comments on commit 20761ef

Please sign in to comment.