refactor: adapt theme to Halo 2.26.0 standards

This commit is contained in:
Erzbir
2026-08-17 01:36:51 +08:00
parent 6771c2a90d
commit fc5f5cc617
17 changed files with 71 additions and 22 deletions
+4 -2
View File
@@ -1,15 +1,17 @@
<!DOCTYPE html>
<html
xmlns:th="https://www.thymeleaf.org"
th:replace="~{modules/layout :: html(title = |${project.title} - #{page.portfolio.title} - ${site.title}|, header = null, content = ~{::content}, footer = null)}"
th:replace="~{layout :: html(head = ~{::head}, content = ~{::content})}"
>
<th:block th:fragment="head">
<title th:text="|${project.title} - #{page.portfolio.title} - ${site.title}|">Project</title>
</th:block>
<th:block th:fragment="content"
th:with="hasCover=${project.cover != null and !project.cover.isEmpty()},
hasRepoUrl=${project.repoUrl != null and !project.repoUrl.isEmpty()},
hasDemoUrl=${project.demoUrl != null and !project.demoUrl.isEmpty()},
hasDocsUrl=${project.docsUrl != null and !project.docsUrl.isEmpty()},
hasSummary=${project.summary != null and !project.summary.isEmpty()},
hasContent=${project.content != null and !project.content.isEmpty()},
hasRenderedContent=${projectContentHtml != null and !projectContentHtml.isEmpty()},
platformLabel=${platformLabels != null and project.platform != null ? (platformLabels[project.platform] ?: project.platform) : project.platform},
typeLabel=${typeLabels != null and project.type != null ? (typeLabels[project.type] ?: project.type) : project.type}">