Publii - how to add menu directly in theme files
I needed to add a menu that cannot be made from the admin panel. Someday I may find a better way, but for now I just pasted it directly into the theme file. Right now I'm using the "Technews" theme.
Here:
publii\site_location\mysite\input\themes\technews\partials
I opened this file:
sidebar.hbs
Took the menu:
<section class="box">
<h3 class="box__title">My Menu</h3>
<ul class="tags">
<li>
<a href="https://link">link text</a>
</li>
<li>
<a href="https://link">link text</a>
</li>
<li>
<a href="https://link">link text</a>
</li>
</ul>
</section>
And pasted it there, at the very bottom, before the closing tag
</div>
In this case, the menu will be at the very bottom of the sidebar.