Template-ReadTheDocs
Template-ReadTheDocs copied to clipboard
Feature request for adding dividers or other html elements
Hi, I just wrote this bit of code. item.type can be all html elements that can be child of li element like span or a...
It can be used to make dividers for exemple
<{{ item.type is defined ? item.type : 'a' }} class="reference internal {{ itemId == currentMenu ? 'current' }}" href="{{ item.absoluteUrl|default(baseUrl ~ '/' ~ item.relativeUrl) }}"> {{ item.text|raw }} </{{ item.type is defined ? item.type : 'a' }}>
Also, are there a native way to do a submenu ? Should I implement one ?
(@mnapoli sorry for issue on light-theme, just a mistake cause I was on the wrong page :) )