As post title, here is the issue.
My config.toml like this:
[[languages.zh.menu.docs]]
name = "关于 Jenkins X"
weight = 1
identifier = "about"
url = "/zh/about/"
Then menu html code like this:
<li class="f5 w-100 hover-bg-light-gray hover-accent-color-light fw8">
<a href="javascript:void(0)" class="js-toggle dib w-100 link mid-gray hover-accent-color-light pl2 pr2 pv2 " data-target=".%E5%85%B3%E4%BA%8E-jenkins-x">关于 Jenkins X</a>
<ul class="%E5%85%B3%E4%BA%8E-jenkins-x desktopmenu animated fadeIn list pl0 bg-light-gray dn">
<li class="f6 fw4">
<a href="http://localhost:1313/zh/about/" class="db link hover-bg-gray hover-white pl3 pr2 pv2 black ">
概览
</a>
</li>
<li class="f6 fw4">
<a href="http://localhost:1313/zh/about/features/" class="db link hover-bg-gray hover-white pl3 pr2 pv2 black ">
Features
</a>
</li>
<li class="f6 fw4">
<a href="http://localhost:1313/zh/about/concepts/" class="db link hover-bg-gray hover-white pl3 pr2 pv2 black ">
Concepts
</a>
</li>
<li class="f6 fw4">
<a href="http://localhost:1313/zh/about/license/" class="db link hover-bg-gray hover-white pl3 pr2 pv2 black ">
License
</a>
</li>
</ul>
</li>
In this case, it can’t be triggered the menu item according to the data-target, because it has been encoded.
Maybe Hugo can add a custom data-target attribute for menu config.
Mac OS X 10.10.4 (14E46)
Hugo Static Site Generator v0.39-DEV-2AAB6DE darwin/amd64 BuildDate: 2018-04-13T20:49:19+0800