From fc5f5cc61727c972a01da3d4b0e0143cf80c98b0 Mon Sep 17 00:00:00 2001 From: Erzbir Date: Sun, 16 Aug 2026 18:10:12 +0800 Subject: [PATCH] refactor: adapt theme to Halo 2.26.0 standards --- templates/archives.html | 5 ++++- templates/categories.html | 5 ++++- templates/category.html | 5 ++++- templates/error/404.html | 5 ++++- templates/error/5xx.html | 5 ++++- templates/error/error.html | 5 ++++- templates/friends.html | 5 ++++- templates/index.html | 5 ++++- templates/{modules => }/layout.html | 12 +++++++----- templates/links.html | 5 ++++- templates/moments.html | 5 ++++- templates/page.html | 5 ++++- templates/portfolio-detail.html | 6 ++++-- templates/portfolio.html | 5 ++++- templates/post.html | 5 ++++- templates/tag.html | 5 ++++- templates/tags.html | 5 ++++- 17 files changed, 71 insertions(+), 22 deletions(-) rename templates/{modules => }/layout.html (94%) diff --git a/templates/archives.html b/templates/archives.html index d46e6ba..32d1a41 100644 --- a/templates/archives.html +++ b/templates/archives.html @@ -1,8 +1,11 @@ + + Archives +
diff --git a/templates/categories.html b/templates/categories.html index ff5dbf6..a52de7f 100644 --- a/templates/categories.html +++ b/templates/categories.html @@ -1,8 +1,11 @@ + + Categories +
diff --git a/templates/category.html b/templates/category.html index ff04321..bcce36b 100644 --- a/templates/category.html +++ b/templates/category.html @@ -1,8 +1,11 @@ + + Category +
diff --git a/templates/error/404.html b/templates/error/404.html index 05b56d6..4133586 100644 --- a/templates/error/404.html +++ b/templates/error/404.html @@ -1,8 +1,11 @@ + + 404 +
diff --git a/templates/error/5xx.html b/templates/error/5xx.html index 8464894..8614c2f 100644 --- a/templates/error/5xx.html +++ b/templates/error/5xx.html @@ -1,8 +1,11 @@ + + 5xx +
diff --git a/templates/error/error.html b/templates/error/error.html index f197513..be7baf5 100644 --- a/templates/error/error.html +++ b/templates/error/error.html @@ -1,8 +1,11 @@ + + Error +
diff --git a/templates/friends.html b/templates/friends.html index b17fb48..b8c7f01 100644 --- a/templates/friends.html +++ b/templates/friends.html @@ -1,8 +1,11 @@ + + Friends +
diff --git a/templates/index.html b/templates/index.html index 18cbcca..e611dca 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,8 +1,11 @@ + + Site title +
diff --git a/templates/modules/layout.html b/templates/layout.html similarity index 94% rename from templates/modules/layout.html rename to templates/layout.html index 5db83ca..138be7b 100644 --- a/templates/modules/layout.html +++ b/templates/layout.html @@ -2,12 +2,11 @@ + th:fragment="html (head, content)"> - - + Site title @@ -94,7 +93,7 @@ (ext == 'sfnt' ? 'font/sfnt' : (ext == 'eot' ? 'application/vnd.ms-fontobject' : ((ext == 'ttc' or ext == 'otc') ? 'font/collection' : 'application/octet-stream'))))))}"> - + + + +
+ th:attr="style=${theme.config.style.fullscreen_layout or #strings.isEmpty(theme.config.style.max_width) ? null : 'max-width:' + theme.config.style.max_width}">
diff --git a/templates/links.html b/templates/links.html index b1ee078..c0eb9ac 100644 --- a/templates/links.html +++ b/templates/links.html @@ -1,6 +1,9 @@ + th:replace="~{layout :: html(head = ~{::head}, content = ~{::content})}"> + + Links +
diff --git a/templates/moments.html b/templates/moments.html index 92ee415..abf4c47 100644 --- a/templates/moments.html +++ b/templates/moments.html @@ -1,8 +1,11 @@ + + Moments +
+ + Page title +
diff --git a/templates/portfolio-detail.html b/templates/portfolio-detail.html index 8a7a90d..1b5e854 100644 --- a/templates/portfolio-detail.html +++ b/templates/portfolio-detail.html @@ -1,15 +1,17 @@ + + Project + diff --git a/templates/portfolio.html b/templates/portfolio.html index b6b0d4b..b48bb72 100644 --- a/templates/portfolio.html +++ b/templates/portfolio.html @@ -1,8 +1,11 @@ + + Portfolio +
diff --git a/templates/post.html b/templates/post.html index 7cc7eea..c8d464f 100644 --- a/templates/post.html +++ b/templates/post.html @@ -1,8 +1,11 @@ + + Post title +
diff --git a/templates/tag.html b/templates/tag.html index 8c2075a..2e05136 100644 --- a/templates/tag.html +++ b/templates/tag.html @@ -1,8 +1,11 @@ + + Tag +
diff --git a/templates/tags.html b/templates/tags.html index 51e045e..d0b0542 100644 --- a/templates/tags.html +++ b/templates/tags.html @@ -1,8 +1,11 @@ + + Tags +