I recently noticed that the navbar of the website is not rendered properly. The Portuguese cheatsheet is unavailable from the dropdown menu, and the link to the GitHub repo on the right is also missing.
I initially thought the problem was a missing closing HTML tag, but now I think the problem is caused by litedown::fuse_site() interpreting the indentation as a code block. From the source, you can see that the problem was the introduction of <pre><code> and HTML-escaping all of the code inside:
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false">Cheatsheet</a>
<ul class="dropdown-menu">
<li><a class="dropdown-item" href="assets/datatable_cheatsheet.pdf">English</a></li>
<li><a class="dropdown-item" href="assets/datatable_cheatsheet_fr.pdf">Francais</a></li>
<pre><code> <li><a class="dropdown-item" href="assets/datatable_cheatsheet_pt_br.pdf">Portuguese</a></li>
</ul>
</li>
</ul>
<ul class="navbar-nav ms-auto">
<li class="nav-item"><a class="nav-link" href="https://github.com/Rdatatable/data.table">GitHub</a></li>
</ul>
</div>
</code></pre>
</div>
</nav></nav>
I was able to reproduce this locally as well. And if I remove all the indentation from site/_navbar.html, the navbar renders properly. Obviously that isn't an ideal solution, so I'm open to ideas.
xref: #7534, #7630
I recently noticed that the navbar of the website is not rendered properly. The Portuguese cheatsheet is unavailable from the dropdown menu, and the link to the GitHub repo on the right is also missing.
I initially thought the problem was a missing closing HTML tag, but now I think the problem is caused by
litedown::fuse_site()interpreting the indentation as a code block. From the source, you can see that the problem was the introduction of<pre><code>and HTML-escaping all of the code inside:I was able to reproduce this locally as well. And if I remove all the indentation from
site/_navbar.html, the navbar renders properly. Obviously that isn't an ideal solution, so I'm open to ideas.xref: #7534, #7630