Camellia
links.html:
<!DOCTYPE html>
<html
th:replace="~{modules/layout :: html (title = '友情链接',
content = ~{::content}, layout = 'page' ,breadcrumb = ~{::breadcrumb})}"
xmlns:th="https://www.thymeleaf.org"
>
<th:block th:fragment="breadcrumb">
<span>
<a href="/">[[#{breadcrumb.home}]]</a>
</span>
<span>友情链接</span>
</th:block>
<th:block th:fragment="content">
<h1 data-toc-skip>友情链接</h1>
<div class="page-links">
<div th:each="group : ${groups}">
<h2
th:unless="${#strings.isEmpty(group.spec.displayName)}"
th:text="${group.spec.displayName}"
></h2>
<div>
<a
target="_blank"
th:each="link : ${group.links}"
th:href="${link.spec.url}"
>
<div>
<div>
<img
th:src="${link.spec.logo}"
th:alt="${link.spec.displayName}"
/>
</div>
<div>
<span th:text="${link.spec.displayName}"></span>
<span th:text="${link.spec.description}"></span>
</div>
</div>
</a>
</div>
</div>
</div>
</th:block>
</html>
不需要去改 page.html