<style> ul.nestedmenu {margin-left: 0;} ul.nestedmenu li {list-style: none;} ul.nestedmenu li > ul {display: none;} ul.nestedmenu li > a::before {content: "•"; display: inline-block; margin-right: 0.25rem; width: 0.5rem; text-align: center;} ul.nestedmenu li.haschildren > a::before {content: "›";} ul.nestedmenu li.haschildren.active > a::before {transform: rotate(90deg);} ul.nestedmenu li.active > ul {display: block;} ul.nestedmenu li > a {color: #444444!important;} ul.nestedmenu li.active > a {color: rgb(247, 44, 114)!important;} </style> {{ .Scratch.Set "ancestors" .Ancestors }} {{ .Scratch.Set "curRelPermalink" .RelPermalink }} {{ with .Site.GetPage (print "/" .Section "/_index.md") }} <ul class="nestedmenu"> {{ partial "nested-menu-partial.html" (dict "curRelPermalink" ($.Scratch.Get "curRelPermalink") "ancestors" ($.Scratch.Get "ancestors") "context" . ) }} </ul> {{ end }}