mirror of
https://github.com/halo-dev/docs.git
synced 2026-01-21 02:12:47 +08:00
fix: menu api example in theme dev docs (#252)
日常主题开发中,我们应该使用菜单最终生成到名字 ```release-note None ````
This commit is contained in:
@@ -19,7 +19,7 @@ title: 模型元数据
|
||||
<ul th:with="menuItems = ${menu.menuItems}">
|
||||
<li th:each="menuItem : ${menuItems}">
|
||||
<i th:class="${#annotations.get(menuItem, 'icon')}"></i>
|
||||
<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>
|
||||
@@ -38,7 +38,7 @@ title: 模型元数据
|
||||
<ul th:with="menuItems = ${menu.menuItems}">
|
||||
<li th:each="menuItem : ${menuItems}">
|
||||
<i th:class="${#annotations.getOrDefault(menuItem, 'icon', 'fa')}"></i>
|
||||
<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>
|
||||
@@ -57,7 +57,7 @@ title: 模型元数据
|
||||
<ul th:with="menuItems = ${menu.menuItems}">
|
||||
<li th:each="menuItem : ${menuItems}">
|
||||
<i th:if="${#annotations.contains(menuItem, 'icon')}" th:class="${#annotations.get(menuItem, 'icon')}"></i>
|
||||
<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>
|
||||
|
||||
@@ -32,7 +32,7 @@ menuFinder.getByName(name)
|
||||
<li th:each="menuItem : ${menuItems}">
|
||||
<a
|
||||
th:href="@{${menuItem.status.href}}"
|
||||
th:text="${menuItem.spec.displayName}"
|
||||
th:text="${menuItem.status.displayName}"
|
||||
th:target="${menuItem.spec.target?.value}"
|
||||
>
|
||||
</a>
|
||||
@@ -67,7 +67,7 @@ menuFinder.getPrimary()
|
||||
<li th:each="menuItem : ${menuItems}">
|
||||
<a
|
||||
th:href="@{${menuItem.status.href}}"
|
||||
th:text="${menuItem.spec.displayName}"
|
||||
th:text="${menuItem.status.displayName}"
|
||||
th:target="${menuItem.spec.target?.value}"
|
||||
>
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user