refactor: adapt theme to Halo 2.26.0 standards
This commit is contained in:
@@ -1,8 +1,11 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html
|
<html
|
||||||
xmlns:th="https://www.thymeleaf.org"
|
xmlns:th="https://www.thymeleaf.org"
|
||||||
th:replace="~{modules/layout :: html(title = |#{page.archives.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="|#{page.archives.title} - ${site.title}|">Archives</title>
|
||||||
|
</th:block>
|
||||||
<th:block th:fragment="content">
|
<th:block th:fragment="content">
|
||||||
<article class="post">
|
<article class="post">
|
||||||
<header>
|
<header>
|
||||||
|
|||||||
@@ -1,8 +1,11 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html
|
<html
|
||||||
xmlns:th="https://www.thymeleaf.org"
|
xmlns:th="https://www.thymeleaf.org"
|
||||||
th:replace="~{modules/layout :: html(title = |#{page.categories.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="|#{page.categories.title} - ${site.title}|">Categories</title>
|
||||||
|
</th:block>
|
||||||
<th:block th:fragment="content">
|
<th:block th:fragment="content">
|
||||||
<article class="post">
|
<article class="post">
|
||||||
<header>
|
<header>
|
||||||
|
|||||||
@@ -1,8 +1,11 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html
|
<html
|
||||||
xmlns:th="https://www.thymeleaf.org"
|
xmlns:th="https://www.thymeleaf.org"
|
||||||
th:replace="~{modules/layout :: html(title = |#{page.category.title}: ${category.spec.displayName} - ${site.title}|, header = null, content = ~{::content}, footer = null)}"
|
th:replace="~{layout :: html(head = ~{::head}, content = ~{::content})}"
|
||||||
>
|
>
|
||||||
|
<th:block th:fragment="head">
|
||||||
|
<title th:text="|#{page.category.title}: ${category.spec.displayName} - ${site.title}|">Category</title>
|
||||||
|
</th:block>
|
||||||
<th:block th:fragment="content">
|
<th:block th:fragment="content">
|
||||||
<article class="post">
|
<article class="post">
|
||||||
<header>
|
<header>
|
||||||
|
|||||||
@@ -1,8 +1,11 @@
|
|||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html
|
<html
|
||||||
xmlns:th="https://www.thymeleaf.org"
|
xmlns:th="https://www.thymeleaf.org"
|
||||||
th:replace="~{modules/layout :: html(title = '404 - ' + ${site.title}, header = null, content = ~{::content}, footer = null)}"
|
th:replace="~{layout :: html(head = ~{::head}, content = ~{::content})}"
|
||||||
>
|
>
|
||||||
|
<th:block th:fragment="head">
|
||||||
|
<title th:text="|404 - ${site.title}|">404</title>
|
||||||
|
</th:block>
|
||||||
<th:block th:fragment="content">
|
<th:block th:fragment="content">
|
||||||
<article class="post">
|
<article class="post">
|
||||||
<header>
|
<header>
|
||||||
|
|||||||
@@ -1,8 +1,11 @@
|
|||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html
|
<html
|
||||||
xmlns:th="https://www.thymeleaf.org"
|
xmlns:th="https://www.thymeleaf.org"
|
||||||
th:replace="~{modules/layout :: html(title = '5xx - ' + ${site.title}, header = null, content = ~{::content}, footer = null)}"
|
th:replace="~{layout :: html(head = ~{::head}, content = ~{::content})}"
|
||||||
>
|
>
|
||||||
|
<th:block th:fragment="head">
|
||||||
|
<title th:text="|5xx - ${site.title}|">5xx</title>
|
||||||
|
</th:block>
|
||||||
<th:block th:fragment="content">
|
<th:block th:fragment="content">
|
||||||
<article class="post">
|
<article class="post">
|
||||||
<header>
|
<header>
|
||||||
|
|||||||
@@ -1,8 +1,11 @@
|
|||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html
|
<html
|
||||||
xmlns:th="https://www.thymeleaf.org"
|
xmlns:th="https://www.thymeleaf.org"
|
||||||
th:replace="~{modules/layout :: html(title = |#{page.error.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="|#{page.error.title} - ${site.title}|">Error</title>
|
||||||
|
</th:block>
|
||||||
<th:block th:fragment="content">
|
<th:block th:fragment="content">
|
||||||
<article class="post">
|
<article class="post">
|
||||||
<header>
|
<header>
|
||||||
|
|||||||
@@ -1,8 +1,11 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html
|
<html
|
||||||
xmlns:th="https://www.thymeleaf.org"
|
xmlns:th="https://www.thymeleaf.org"
|
||||||
th:replace="~{modules/layout :: html(title = |#{page.friends.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="|#{page.friends.title} - ${site.title}|">Friends</title>
|
||||||
|
</th:block>
|
||||||
<th:block th:fragment="content">
|
<th:block th:fragment="content">
|
||||||
<article class="post">
|
<article class="post">
|
||||||
<header>
|
<header>
|
||||||
|
|||||||
@@ -1,8 +1,11 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html
|
<html
|
||||||
xmlns:th="https://www.thymeleaf.org"
|
xmlns:th="https://www.thymeleaf.org"
|
||||||
th:replace="~{modules/layout :: html(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="${site.title}">Site title</title>
|
||||||
|
</th:block>
|
||||||
<th:block th:fragment="content">
|
<th:block th:fragment="content">
|
||||||
<section class="index-content framed"
|
<section class="index-content framed"
|
||||||
th:if="${not #strings.isEmpty(theme.config.index_page.notice_title) and not #strings.isEmpty(theme.config.index_page.notice_content)}">
|
th:if="${not #strings.isEmpty(theme.config.index_page.notice_title) and not #strings.isEmpty(theme.config.index_page.notice_content)}">
|
||||||
|
|||||||
@@ -2,12 +2,11 @@
|
|||||||
<html
|
<html
|
||||||
xmlns:th="https://www.thymeleaf.org"
|
xmlns:th="https://www.thymeleaf.org"
|
||||||
th:lang="${#locale.toLanguageTag}"
|
th:lang="${#locale.toLanguageTag}"
|
||||||
th:fragment="html (header, content, footer)">
|
th:fragment="html (head, content)">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8"/>
|
<meta charset="UTF-8"/>
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||||
<title th:text="${title}"></title>
|
<title th:if="${head == null}" th:text="${site.title}">Site title</title>
|
||||||
<th:block th:replace="~{modules/theme-preferences :: theme-preferences}"/>
|
<th:block th:replace="~{modules/theme-preferences :: theme-preferences}"/>
|
||||||
<link no-pjax rel="stylesheet" th:href="@{/assets/dist/main.css?v={version}(version=${theme.spec.version})}"/>
|
<link no-pjax rel="stylesheet" th:href="@{/assets/dist/main.css?v={version}(version=${theme.spec.version})}"/>
|
||||||
<script no-pjax type="module" th:src="@{/assets/dist/main.js?v={version}(version=${theme.spec.version})}"></script>
|
<script no-pjax type="module" th:src="@{/assets/dist/main.js?v={version}(version=${theme.spec.version})}"></script>
|
||||||
@@ -94,7 +93,7 @@
|
|||||||
(ext == 'sfnt' ? 'font/sfnt' :
|
(ext == 'sfnt' ? 'font/sfnt' :
|
||||||
(ext == 'eot' ? 'application/vnd.ms-fontobject' :
|
(ext == 'eot' ? 'application/vnd.ms-fontobject' :
|
||||||
((ext == 'ttc' or ext == 'otc') ? 'font/collection' : 'application/octet-stream'))))))}">
|
((ext == 'ttc' or ext == 'otc') ? 'font/collection' : 'application/octet-stream'))))))}">
|
||||||
<link rel="preload" th:href="${font}" as="font" th:type="${mime}" crossorigin />
|
<link rel="preload" th:href="${font}" as="font" th:type="${mime}" crossorigin/>
|
||||||
<!--/*/
|
<!--/*/
|
||||||
<style th:inline="css">
|
<style th:inline="css">
|
||||||
@font-face {
|
@font-face {
|
||||||
@@ -112,13 +111,16 @@
|
|||||||
</style>
|
</style>
|
||||||
/*/-->
|
/*/-->
|
||||||
</th:block>
|
</th:block>
|
||||||
|
<th:block th:if="${head != null}">
|
||||||
|
<th:block th:replace="${head}"/>
|
||||||
|
</th:block>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body th:attr="data-layout-mode=${theme.config.style.fullscreen_layout ? 'fullscreen' : 'normal'},
|
<body th:attr="data-layout-mode=${theme.config.style.fullscreen_layout ? 'fullscreen' : 'normal'},
|
||||||
data-table-full-width=${theme.config.style.table_full_width ? 'true' : 'false'}">
|
data-table-full-width=${theme.config.style.table_full_width ? 'true' : 'false'}">
|
||||||
<div class="site-shell">
|
<div class="site-shell">
|
||||||
<div class="site-frame"
|
<div class="site-frame"
|
||||||
th:attr="style=${theme.config.style.fullscreen_layout or #strings.isEmpty(theme.config.style.max_width) ? '' : 'max-width:' + theme.config.style.max_width}">
|
th:attr="style=${theme.config.style.fullscreen_layout or #strings.isEmpty(theme.config.style.max_width) ? null : 'max-width:' + theme.config.style.max_width}">
|
||||||
<header class="header">
|
<header class="header">
|
||||||
<th:block th:replace="~{modules/header :: header}"/>
|
<th:block th:replace="~{modules/header :: header}"/>
|
||||||
</header>
|
</header>
|
||||||
@@ -1,6 +1,9 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html xmlns:th="https://www.thymeleaf.org"
|
<html xmlns:th="https://www.thymeleaf.org"
|
||||||
th:replace="~{modules/layout :: html(title = |#{page.links.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="|#{page.links.title} - ${site.title}|">Links</title>
|
||||||
|
</th:block>
|
||||||
<th:block th:fragment="content">
|
<th:block th:fragment="content">
|
||||||
<article class="post">
|
<article class="post">
|
||||||
<header>
|
<header>
|
||||||
|
|||||||
@@ -1,8 +1,11 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html
|
<html
|
||||||
xmlns:th="https://www.thymeleaf.org"
|
xmlns:th="https://www.thymeleaf.org"
|
||||||
th:replace="~{modules/layout :: html(title = |#{page.moments.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="|#{page.moments.title} - ${site.title}|">Moments</title>
|
||||||
|
</th:block>
|
||||||
<th:block th:fragment="content">
|
<th:block th:fragment="content">
|
||||||
<article th:each="moment, stat : ${moments.items}"
|
<article th:each="moment, stat : ${moments.items}"
|
||||||
th:with="
|
th:with="
|
||||||
|
|||||||
+4
-1
@@ -1,8 +1,11 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html
|
<html
|
||||||
xmlns:th="https://www.thymeleaf.org"
|
xmlns:th="https://www.thymeleaf.org"
|
||||||
th:replace="~{modules/layout :: html(title = |${singlePage.spec.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="|${singlePage.spec.title} - ${site.title}|">Page title</title>
|
||||||
|
</th:block>
|
||||||
<th:block th:fragment="content">
|
<th:block th:fragment="content">
|
||||||
<article class="post">
|
<article class="post">
|
||||||
<header>
|
<header>
|
||||||
|
|||||||
@@ -1,15 +1,17 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html
|
<html
|
||||||
xmlns:th="https://www.thymeleaf.org"
|
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:block th:fragment="content"
|
||||||
th:with="hasCover=${project.cover != null and !project.cover.isEmpty()},
|
th:with="hasCover=${project.cover != null and !project.cover.isEmpty()},
|
||||||
hasRepoUrl=${project.repoUrl != null and !project.repoUrl.isEmpty()},
|
hasRepoUrl=${project.repoUrl != null and !project.repoUrl.isEmpty()},
|
||||||
hasDemoUrl=${project.demoUrl != null and !project.demoUrl.isEmpty()},
|
hasDemoUrl=${project.demoUrl != null and !project.demoUrl.isEmpty()},
|
||||||
hasDocsUrl=${project.docsUrl != null and !project.docsUrl.isEmpty()},
|
hasDocsUrl=${project.docsUrl != null and !project.docsUrl.isEmpty()},
|
||||||
hasSummary=${project.summary != null and !project.summary.isEmpty()},
|
hasSummary=${project.summary != null and !project.summary.isEmpty()},
|
||||||
hasContent=${project.content != null and !project.content.isEmpty()},
|
|
||||||
hasRenderedContent=${projectContentHtml != null and !projectContentHtml.isEmpty()},
|
hasRenderedContent=${projectContentHtml != null and !projectContentHtml.isEmpty()},
|
||||||
platformLabel=${platformLabels != null and project.platform != null ? (platformLabels[project.platform] ?: project.platform) : project.platform},
|
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}">
|
typeLabel=${typeLabels != null and project.type != null ? (typeLabels[project.type] ?: project.type) : project.type}">
|
||||||
|
|||||||
@@ -1,8 +1,11 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html
|
<html
|
||||||
xmlns:th="https://www.thymeleaf.org"
|
xmlns:th="https://www.thymeleaf.org"
|
||||||
th:replace="~{modules/layout :: html(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="|#{page.portfolio.title} - ${site.title}|">Portfolio</title>
|
||||||
|
</th:block>
|
||||||
<th:block th:fragment="content">
|
<th:block th:fragment="content">
|
||||||
<article class="portfolio-page">
|
<article class="portfolio-page">
|
||||||
<header>
|
<header>
|
||||||
|
|||||||
+4
-1
@@ -1,8 +1,11 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html
|
<html
|
||||||
xmlns:th="https://www.thymeleaf.org"
|
xmlns:th="https://www.thymeleaf.org"
|
||||||
th:replace="~{modules/layout :: html(title = |${post.spec.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="|${post.spec.title} - ${site.title}|">Post title</title>
|
||||||
|
</th:block>
|
||||||
<th:block th:fragment="content">
|
<th:block th:fragment="content">
|
||||||
<article class="post">
|
<article class="post">
|
||||||
<header>
|
<header>
|
||||||
|
|||||||
+4
-1
@@ -1,8 +1,11 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html
|
<html
|
||||||
xmlns:th="https://www.thymeleaf.org"
|
xmlns:th="https://www.thymeleaf.org"
|
||||||
th:replace="~{modules/layout :: html(title = |#{page.tag.title}: ${tag.spec.displayName} - ${site.title}|, header = null, content = ~{::content}, footer = null)}"
|
th:replace="~{layout :: html(head = ~{::head}, content = ~{::content})}"
|
||||||
>
|
>
|
||||||
|
<th:block th:fragment="head">
|
||||||
|
<title th:text="|#{page.tag.title}: ${tag.spec.displayName} - ${site.title}|">Tag</title>
|
||||||
|
</th:block>
|
||||||
<th:block th:fragment="content">
|
<th:block th:fragment="content">
|
||||||
<article class="post">
|
<article class="post">
|
||||||
<header>
|
<header>
|
||||||
|
|||||||
+4
-1
@@ -1,8 +1,11 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html
|
<html
|
||||||
xmlns:th="https://www.thymeleaf.org"
|
xmlns:th="https://www.thymeleaf.org"
|
||||||
th:replace="~{modules/layout :: html(title = |#{page.tags.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="|#{page.tags.title} - ${site.title}|">Tags</title>
|
||||||
|
</th:block>
|
||||||
<th:block th:fragment="content">
|
<th:block th:fragment="content">
|
||||||
<article class="post">
|
<article class="post">
|
||||||
<header>
|
<header>
|
||||||
|
|||||||
Reference in New Issue
Block a user