Template-ReadTheDocs icon indicating copy to clipboard operation
Template-ReadTheDocs copied to clipboard

Feature request for adding dividers or other html elements

Open top-kat opened this issue 6 years ago • 1 comments

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 :) )

top-kat avatar Jul 18 '17 18:07 top-kat