Closed likesrt closed 6 months ago
设置指定链接分组为导航分组,避免在导航页面展示博客友情链接。 如下
<th:block th:each="group : ${linkFinder.groupBy()}"> <!-- 判断分组是否为导航分组 --> <th:block th:if="${group.metadata.name == 'link-group-VrZVD'}"> <div class="link_group"> <div class="link_group_title_content" th:if="${group.spec.displayName != ''}" > <i th:class="${#annotations.getOrDefault(group, 'icon', 'ri-archive-stack-fill')}"></i> <h2 class="link_group_title" th:text="${group.spec.displayName}" th:id="${group.spec.displayName}"></h2> </div> <div class="link_group_content"> <a class="link_group_content_link" th:each="link : ${group.links}" :key="i" th:href="${link.spec.url}" target="_blank"> <div class="link_group_content_item"> <div class="link_group_content_item_logo"> <img class="link_group_content_item_logo_img" th:src="${link.spec.logo ?: ('https://ui-avatars.com/api/?background=0D8ABC&color=fff&name=' + link.spec.displayName)}" th:alt="${link.spec.displayName}" /> </div> <div class="link_group_content_item_info"> <div class="link_group_content_item_info_content"> <p class="link_group_content_item_info_content_title" th:text="${link.spec.displayName}"></p> <p class="link_group_content_item_info_content_description" th:text="${link.spec.description}"></p> </div> </div> </div> </a> </div> </div> </th:block> </th:block>
已开发完成,会在下个版本上线。 目前更新周期为一周一更
设置指定链接分组为导航分组,避免在导航页面展示博客友情链接。 如下