> > Add a page navigation section with links to the headings on the page
> 
> That is more difficult than you think to do it right with Nimib currently.

Indeed it is not straightforward right now, but recently I more or less settled 
on an api, so it should not be too difficult to do (if someone wants to give it 
a go; otherwise sooner or later I will get to it). Relevant issue is 
<https://github.com/pietroppeter/nimib/issues/58>

Btw this is an issue which is also present in Nim blog (no linkable headers nor 
an easy way to make a toc; I imagine there should be a Jekyll plugin or 
something to have that available).

> @pietroppeter made this example (link to toc_mustache)

A better example is the cheat sheet one: 
<https://pietroppeter.github.io/nimib/cheatsheet.html>

The link you report was an exercise in trying to do a toc in mustache which is 
harder than in other template systems since you do not have control flows. In 
the end it is not what was used in nimibook (and in that case it was a toc for 
site navigation, not for page navigation), so not particularly relevant anymore.

Also regarding the dark theme, indeed the current default (taken from 
water.css) has some issues like the ones pointed out by @ingo, I am open to 
improvements. Personally I do not find it that bad, so it has not been a 
priority for me.

Reply via email to