Skip to content

Allow creating a link that points to an external site in menus.toml #327

Answered by h-enk
Yvand asked this question in Support
Discussion options

You must be logged in to vote

@Yvand, the headers of the left navigation sidebar (set in ./config/_default/menus.toml) do not contain an <a> element (see also line 3 of ./layouts/partials/sidebar/docs-menu.html). You could change that — for all or just for the concerning link only.

Or, you could add the link manually (like I did for the Doks Showcase) — add to ./layouts/partials/sidebar/docs-menu.html something like:

<h3 class="sidebar-link"><a href="https://github.com/h-enk/doks/discussions?discussions_q=category%3A%22Show+and+tell%22">Submit to Showcase →</a></h3>

And customize styling to your liking.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Yvand
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #323 on June 14, 2021 11:25.