Skip to content

Commit

Permalink
Fix icons on top level
Browse files Browse the repository at this point in the history
  • Loading branch information
raoulvdberge committed Dec 25, 2023
1 parent f8c8cf8 commit 621f363
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,11 @@
th:if="${item.children == null}"
th:classappend="${item.active ? 'active' : ''}"
th:href="@{'./' + ${currentComponent.slug} + '/' + ${currentComponent.latest ? '' : currentComponent.version.friendlyName() + '/'} + ${item.url}}">
<i class="bi" th:classappend="${item.icon}"></i>
<img th:if="${item.icon != null}"
th:src="@{'./assets/' + ${currentComponent.slug} + '.' + ${currentComponent.version.friendlyName()} + '/' + ${item.icon}}"
<i class="bi"
th:if="${#strings.contains(item.icon, 'bi-')}"
th:classappend="${item.icon}"></i>
<img th:src="@{'./assets/' + ${currentComponent.slug} + '.' + ${currentComponent.version.friendlyName()} + '/' + ${item.icon}}"
th:if="${!#strings.contains(item.icon, 'bi-')}"
width="32"
height="32">
<span th:utext="${item.name}"></span>
Expand Down

0 comments on commit 621f363

Please sign in to comment.