mirror of
https://github.com/halo-dev/docs.git
synced 2026-01-14 07:02:53 +08:00
fix: menu api example in theme dev docs (#252)
日常主题开发中,我们应该使用菜单最终生成到名字 ```release-note None ````
This commit is contained in:
@@ -30,7 +30,7 @@ menuFinder.getByName(name)
|
||||
<div th:with="menu = ${menuFinder.getByName('menu-foo')}">
|
||||
<ul th:with="menuItems = ${menu.menuItems}">
|
||||
<li th:each="menuItem : ${menuItems}">
|
||||
<a th:href="@{${menuItem.status.href}}" th:text="${menuItem.spec.displayName}"></a>
|
||||
<a th:href="@{${menuItem.status.href}}" th:text="${menuItem.status.displayName}"></a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
@@ -60,7 +60,7 @@ menuFinder.getPrimary()
|
||||
<div th:with="menu = ${menuFinder.getPrimary()}">
|
||||
<ul th:with="menuItems = ${menu.menuItems}">
|
||||
<li th:each="menuItem : ${menuItems}">
|
||||
<a th:href="@{${menuItem.status.href}}" th:text="${menuItem.spec.displayName}"></a>
|
||||
<a th:href="@{${menuItem.status.href}}" th:text="${menuItem.status.displayName}"></a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user