1.0.0
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
<!DOCTYPE html>
|
||||
<html
|
||||
xmlns:th="https://www.thymeleaf.org"
|
||||
th:replace="~{modules/layout :: html(title = |#{page.archives.title} - ${site.title}|, header = null, content = ~{::content}, footer = null)}"
|
||||
>
|
||||
<th:block th:fragment="content">
|
||||
<article class="post">
|
||||
<header>
|
||||
<h1 class="post-title">Archives</h1>
|
||||
</header>
|
||||
<section>
|
||||
<th:block th:each="archive : ${archives.items}">
|
||||
<ul>
|
||||
<th:block th:each="month : ${archive.months}">
|
||||
<li class="post-list" th:each="post : ${month.posts}">
|
||||
<a data-pjax th:href="@{${post.status.permalink}}">
|
||||
<span th:text="${#dates.format(post.spec.publishTime,'yyyy-MM-dd')}">Publish Time</span>
|
||||
<span> :: </span>
|
||||
<span class="post-list-title" th:text="${post.spec.title}">Post Title</span>
|
||||
</a>
|
||||
</li>
|
||||
</th:block>
|
||||
</ul>
|
||||
</th:block>
|
||||
</section>
|
||||
</article>
|
||||
<div class="pagination" th:if="${archives.hasPrevious() || archives.hasNext()}">
|
||||
<div class="pagination__buttons">
|
||||
<span th:if="${archives.hasPrevious()}">
|
||||
<a data-pjax th:href="@{${archives.prevUrl}}" class="button prev inline">
|
||||
<span class="button__text">< Prev</span>
|
||||
</a>
|
||||
</span>
|
||||
<span th:if="${archives.hasNext()}">
|
||||
<a data-pjax th:href="@{${archives.nextUrl}}" class="button next inline">
|
||||
<span class="button__text">Next</span>
|
||||
<span class="button__icon"> ></span>
|
||||
</a>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</th:block>
|
||||
</html>
|
||||
@@ -0,0 +1,18 @@
|
||||
<!DOCTYPE html>
|
||||
<html
|
||||
xmlns:th="https://www.thymeleaf.org"
|
||||
th:replace="~{modules/layout :: html(title = |#{page.categories.title} - ${site.title}|, header = null, content = ~{::content}, footer = null)}"
|
||||
>
|
||||
<th:block th:fragment="content">
|
||||
<article class="post">
|
||||
<header>
|
||||
<h1 class="post-title">Categories</h1>
|
||||
</header>
|
||||
<section class="post-content">
|
||||
<ul>
|
||||
<li th:replace="~{modules/category-tree :: single(categories=${categories})}"></li>
|
||||
</ul>
|
||||
</section>
|
||||
</article>
|
||||
</th:block>
|
||||
</html>
|
||||
@@ -0,0 +1,42 @@
|
||||
<!DOCTYPE html>
|
||||
<html
|
||||
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:block th:fragment="content">
|
||||
<article class="post">
|
||||
<header>
|
||||
<h1
|
||||
class="post-title"
|
||||
th:text="'Category: '+${category.spec.displayName}+' ['+${category.status.visiblePostCount?:0}+']'">
|
||||
Category: Category name [n]
|
||||
</h1>
|
||||
</header>
|
||||
<section class="post-content">
|
||||
<ul>
|
||||
<li class="post-list" th:each="post : ${posts.items}">
|
||||
<a data-pjax th:href="@{${post.status.permalink}}">
|
||||
<span th:text="${#dates.format(post.spec.publishTime,'yyyy-MM-dd')}">Publish Time</span>
|
||||
<span> :: </span>
|
||||
<span class="post-list-title" th:text="${post.spec.title}">Post Title</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</article>
|
||||
<section class="pagination" th:if="${posts.hasPrevious() || posts.hasNext()}">
|
||||
<div class="pagination__buttons" th:with="postCursor=${postFinder.cursor(post.metadata?.name)}">
|
||||
<span th:if="${postCursor.hasPrevious()}">
|
||||
<a data-pjax th:href="@{${postCursor.previous?.status?.permalink}}" class="button prev inline">
|
||||
<span class="button__text" th:text="|< ${postCursor.previous?.spec?.title}|">prevPost</span>
|
||||
</a>
|
||||
</span>
|
||||
<span th:if="${postCursor.hasNext()}">
|
||||
<a data-pjax th:href="@{${postCursor.next?.status?.permalink}}" class="button next inline">
|
||||
<span class="button__text" th:text="|${postCursor.next?.spec?.title} >|">nextPost</span>
|
||||
</a>
|
||||
</span>
|
||||
</div>
|
||||
</section>
|
||||
</th:block>
|
||||
</html>
|
||||
@@ -0,0 +1,19 @@
|
||||
<!doctype html>
|
||||
<html
|
||||
xmlns:th="https://www.thymeleaf.org"
|
||||
th:replace="~{modules/layout :: html(title = |${singlePage.spec.title} - ${site.title}|, header = null, content = ~{::content}, footer = null)}"
|
||||
>
|
||||
<th:block th:fragment="content">
|
||||
<div class="content">
|
||||
<div class="post">
|
||||
<h1 class="post-title" th:text="${error.title}">404</h1>
|
||||
<div class="post-content">
|
||||
<p th:text="${error?.detail}"></p>
|
||||
</div>
|
||||
<button th:onclick="'location.href=\'' + @{/} + '\''">
|
||||
Back to home page
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</th:block>
|
||||
</html>
|
||||
@@ -0,0 +1,19 @@
|
||||
<!doctype html>
|
||||
<html
|
||||
xmlns:th="https://www.thymeleaf.org"
|
||||
th:replace="~{modules/layout :: html(title = |${singlePage.spec.title} - ${site.title}|, header = null, content = ~{::content}, footer = null)}"
|
||||
>
|
||||
<th:block th:fragment="content">
|
||||
<div class="content">
|
||||
<div class="post">
|
||||
<h1 class="post-title" th:text="${error.title}">5xx</h1>
|
||||
<div class="post-content">
|
||||
<p th:text="${error?.detail}"></p>
|
||||
</div>
|
||||
<button th:onclick="'location.href=\'' + @{/} + '\''">
|
||||
Back to home page
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</th:block>
|
||||
</html>
|
||||
@@ -0,0 +1,63 @@
|
||||
<!DOCTYPE html>
|
||||
<html
|
||||
xmlns:th="https://www.thymeleaf.org"
|
||||
th:replace="~{modules/layout :: html(title = ${site.title}, header = null, content = ~{::content}, footer = null)}"
|
||||
>
|
||||
<th:block th:fragment="content">
|
||||
<section class="index-content framed">
|
||||
<h1 class="typed-text" th:text="${theme.config.basic.index_notice_title}"></h1>
|
||||
<div th:utext="${theme.config.basic.index_notice_content}"></div>
|
||||
</section>
|
||||
<section class="posts">
|
||||
<article class="post on-list" th:each="post : ${posts.items}">
|
||||
<header>
|
||||
<h1 class="post-title">
|
||||
<a data-pjax th:text="${post.spec.title}" th:href="@{${post.status.permalink}}">Post Title</a>
|
||||
</h1>
|
||||
<div class="post-meta">
|
||||
<span class="post-date" th:text="${#dates.format(post.spec.publishTime,'yyyy-MM-dd')}">
|
||||
Publish Time
|
||||
</span>
|
||||
<span
|
||||
class="post-author"
|
||||
th:with="contributor = ${post.contributors[0]}"
|
||||
th:text="${contributor.displayName}"
|
||||
>Author</span
|
||||
>
|
||||
</div>
|
||||
<span class="post-tags">
|
||||
<span class="post-tag" th:each="tag : ${post.tags}">
|
||||
<a data-pjax
|
||||
th:href="@{${tag.status.permalink}}"
|
||||
th:title="${tag.spec.displayName}"
|
||||
th:text="'#'+${tag.spec.displayName}"
|
||||
>#Tag
|
||||
</a>
|
||||
</span>
|
||||
</span>
|
||||
</header>
|
||||
<section class="post-content">
|
||||
<p th:text="${post.status.excerpt}">Post Excerpt...</p>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<a data-pjax class="read-more button inline" th:href="@{${post.status.permalink}}">[Read more]</a>
|
||||
</section>
|
||||
</article>
|
||||
</section>
|
||||
<section class="pagination" th:if="${posts.hasPrevious() || posts.hasNext()}">
|
||||
<div class="pagination__buttons">
|
||||
<span th:if="${posts.hasPrevious()}">
|
||||
<a data-pjax th:href="@{${posts.prevUrl}}" class="button inline prev">
|
||||
<span class="button__text">< Prev</span>
|
||||
</a>
|
||||
</span>
|
||||
<span th:if="${posts.hasNext()}">
|
||||
<a data-pjax th:href="@{${posts.nextUrl}}" class="button inline next">
|
||||
<span class="button__text">Next ></span>
|
||||
</a>
|
||||
</span>
|
||||
</div>
|
||||
</section>
|
||||
</th:block>
|
||||
</html>
|
||||
@@ -0,0 +1,39 @@
|
||||
<!DOCTYPE html>
|
||||
<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:block th:fragment="content">
|
||||
<article class="post">
|
||||
<header>
|
||||
<h1 class="post-title">Links</h1>
|
||||
</header>
|
||||
<section class="post-content link-section" th:each="group : ${groups}">
|
||||
<h2 th:text="${!#strings.isEmpty(group.spec.displayName) ? group.spec.displayName:'links'}">
|
||||
Links
|
||||
</h2>
|
||||
<table class="link-table">
|
||||
<tbody>
|
||||
<tr th:each="link : ${group.links}">
|
||||
<td>
|
||||
<a th:href="${link.spec.url}" target="_blank" class="link-item">
|
||||
<div class="link-container">
|
||||
<div>
|
||||
<img class="link-logo" src="" th:src="${link.spec.logo}"
|
||||
th:alt="${link.spec.displayName}">
|
||||
</div>
|
||||
<div class="link-content">
|
||||
<div class="link-title">
|
||||
<span th:text="${link.spec.displayName}"></span>
|
||||
<span class="link-url" th:text="|(${link.spec.url})|"></span>
|
||||
</div>
|
||||
<div class="link-description" th:text="${link.spec.description}"></div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
</article>
|
||||
</th:block>
|
||||
</html>
|
||||
@@ -0,0 +1,11 @@
|
||||
<ul th:fragment="next (categories)">
|
||||
<li th:fragment="single (categories)" th:each="category : ${categories}">
|
||||
<a th:href="@{${category.status.permalink}}">
|
||||
<span th:text="${category.spec.displayName}"></span>
|
||||
</a>
|
||||
<span th:text="' ['+${category.status.visiblePostCount?:0}+']'"></span>
|
||||
<th:block th:if="${not #lists.isEmpty(category.children)}">
|
||||
<th:block th:replace="~{modules/category-tree :: next (categories=${category.children})}"></th:block>
|
||||
</th:block>
|
||||
</li>
|
||||
</ul>
|
||||
@@ -0,0 +1,37 @@
|
||||
<th:block th:fragment="footer">
|
||||
<halo:footer/>
|
||||
<div class="footer-inner">
|
||||
<section class="footer-copyright-engine">
|
||||
<span>Powered by </span>
|
||||
<span>
|
||||
<a target="_blank" href="http://www.halo.run">Halo</a>
|
||||
</span>
|
||||
<span> :: </span>
|
||||
<span>Theme </span>
|
||||
<a href="https://github.com/Erzbir/halo-theme-terminal">Terminal</a>
|
||||
</section>
|
||||
<section class="footer-copyright-site">
|
||||
<div class="footer-user">
|
||||
<span>© </span>
|
||||
<span th:text="${#dates.year(#dates.createNow())}">2025</span>
|
||||
<span> </span>
|
||||
<span th:text="${site.title}"></span>
|
||||
</div>
|
||||
<div class="footer-icp">
|
||||
<p>
|
||||
<span th:if="${not #strings.isEmpty(theme.config.icp.icp_text)}">
|
||||
<a target="_blank" href="https://beian.miit.gov.cn/"
|
||||
th:href="${theme.config.icp.icp_link}"
|
||||
th:text="${theme.config.icp.icp_text}"></a>
|
||||
</span>
|
||||
<span th:if="${not #strings.isEmpty(theme.config.icp.filing_text)}">
|
||||
<a target="_blank" href="https://www.beian.gov.cn/"
|
||||
th:href="${theme.config.icp.filing_link}"
|
||||
th:text="${theme.config.icp.filing_text}"></a>
|
||||
</span>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
</div>
|
||||
</th:block>
|
||||
@@ -0,0 +1,84 @@
|
||||
<th:block th:fragment="header" th:with="menu = ${menuFinder.getPrimary()}">
|
||||
<div class="header__inner">
|
||||
<div class="header__logo">
|
||||
<a data-pjax href="/">
|
||||
<div class="logo" th:text="${site.title}">Blog Title</div>
|
||||
</a>
|
||||
</div>
|
||||
<button
|
||||
id="search-button"
|
||||
type="button"
|
||||
th:if="${pluginFinder.available('PluginSearchWidget')}"
|
||||
onclick="SearchWidget.open()">
|
||||
<svg class="icon-regular" xmlns="http://www.w3.org/2000/svg" width="1.5rem" height="1.5rem"
|
||||
viewBox="0 0 24 24">
|
||||
<path
|
||||
fill="currentColor"
|
||||
d="m19.6 21l-6.3-6.3q-.75.6-1.725.95T9.5 16q-2.725 0-4.612-1.888T3 9.5q0-2.725 1.888-4.612T9.5 3q2.725 0 4.612 1.888T16 9.5q0 1.1-.35 2.075T14.7 13.3l6.3 6.3l-1.4 1.4ZM9.5 14q1.875 0 3.188-1.313T14 9.5q0-1.875-1.313-3.188T9.5 5Q7.625 5 6.312 6.313T5 9.5q0 1.875 1.313 3.188T9.5 14Z"
|
||||
/>
|
||||
</svg>
|
||||
<svg class="icon-pixel" xmlns="http://www.w3.org/2000/svg" width="1.5rem" height="1.5rem"
|
||||
viewBox="0 0 24 24">
|
||||
<path fill="currentColor"
|
||||
d="M6 2h8v2H6zM4 6V4h2v2zm0 8H2V6h2zm2 2H4v-2h2zm8 0v2H6v-2zm2-2h-2v2h2v2h2v2h2v2h2v-2h-2v-2h-2v-2h-2zm0-8h2v8h-2zm0 0V4h-2v2z"/>
|
||||
</svg>
|
||||
</button>
|
||||
<button id="theme-toggle" type="button">
|
||||
<svg
|
||||
class="icon-regular"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
style="vertical-align: -0.125em"
|
||||
width="1.5rem"
|
||||
height="1.5rem"
|
||||
preserveAspectRatio="xMidYMid meet"
|
||||
viewBox="0 0 24 24"
|
||||
>
|
||||
<path
|
||||
fill="currentColor"
|
||||
d="M7.5 2c-1.79 1.15-3 3.18-3 5.5s1.21 4.35 3.03 5.5C4.46 13 2 10.54 2 7.5A5.5 5.5 0 0 1 7.5 2m11.57 1.5l1.43 1.43L4.93 20.5L3.5 19.07L19.07 3.5m-6.18 2.43L11.41 5L9.97 6l.42-1.7L9 3.24l1.75-.12l.58-1.65L12 3.1l1.73.03l-1.35 1.13l.51 1.67m-3.3 3.61l-1.16-.73l-1.12.78l.34-1.32l-1.09-.83l1.36-.09l.45-1.29l.51 1.27l1.36.03l-1.05.87l.4 1.31M19 13.5a5.5 5.5 0 0 1-5.5 5.5c-1.22 0-2.35-.4-3.26-1.07l7.69-7.69c.67.91 1.07 2.04 1.07 3.26m-4.4 6.58l2.77-1.15l-.24 3.35l-2.53-2.2m4.33-2.7l1.15-2.77l2.2 2.54l-3.35.23m1.15-4.96l-1.14-2.78l3.34.24l-2.2 2.54M9.63 18.93l2.77 1.15l-2.53 2.19l-.24-3.34Z"
|
||||
/>
|
||||
</svg>
|
||||
<svg
|
||||
class="icon-pixel"
|
||||
xmlns="http://www.w3.org/2000/svg" width="1.5rem" height="1.5rem" viewBox="0 0 24 24">
|
||||
<path fill="currentColor"
|
||||
d="M11 0h2v4h-2zm1 12H8v2H4v2H2v4h2v2h10v-2h2v-4h-2v-2h-2zm0 2v2h2v4H4v-4h4v2h2v-2H8v-2zM8 6h6v2H8zm0 2v2H6V8zm8 2h-2V8h2zm0 0h2v2h-2zm4-8h2v2h-2zm0 2v2h-2V4zM2 2h2v2H2zm2 2h2v2H4zm20 7h-4v2h4z"/>
|
||||
</svg>
|
||||
</button>
|
||||
<button id="pixel-toggle" type="button">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="1.5rem" height="1.5rem" viewBox="0 0 24 24">
|
||||
<path fill="currentColor"
|
||||
d="M22 17h2v2h-2Zm-1 2h1v2h-1Zm1-6V9h1V6h-4v3h2v4h1zm-3 8h2v1h-2Zm0-8h2v1h-2Zm-1 9h1v2h-1Zm0-8h1v1h-1Zm-1 1h1v1h-1Zm-1 1h1v8h-1Zm1-3V3h1V0h-3v3h1v10ZM16 1h1v1h-1Zm-1 12h1v1h-1Zm-1 1h1v10h-1Zm-4-3h1v13h2V11h1V8h-4v3zm-1 3h1v10H9Zm-1-1h1v1H8Zm-1 5h1v6H7ZM8 7h1V3H6v4h1v6h1V7zM6 17h1v1H6Zm-1 5h1v2H5Zm0-6h1v1H5Zm1-1v-4H2v4h1v1h2v-1Zm-3-1v-1h2v1Zm0 7h2v1H3Zm-1-2h1v2H2Zm-2-2h2v2H0Z"/>
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
<nav class="navigation-menu">
|
||||
<ul th:if="${menu != null} and ${not #lists.isEmpty(menu.menuItems)}"
|
||||
class="navigation-menu__inner menu--desktop">
|
||||
<li th:each="menuItem : ${menu.menuItems}">
|
||||
<div th:if="${#lists.isEmpty(menuItem.children)}">
|
||||
<a data-pjax th:href="@{${menuItem.status.href}}"
|
||||
th:text="${menuItem.status.displayName}"></a>
|
||||
</div>
|
||||
|
||||
<div th:if="${not #lists.isEmpty(menuItem.children)}" class="menu">
|
||||
<a data-pjax th:href="@{${menuItem.status.href}}">
|
||||
<span th:text="${menuItem.status.displayName}"></span>
|
||||
</a>
|
||||
<div class="sub-menu">
|
||||
<div class="menu__trigger">▾</div>
|
||||
<ul class="menu__dropdown">
|
||||
<li th:each="childMenuItem : ${menuItem.children}">
|
||||
<a data-pjax
|
||||
th:href="@{${childMenuItem.status.href}}">
|
||||
<span th:text="${childMenuItem.status.displayName}"></span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</th:block>
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
<!DOCTYPE html>
|
||||
<html
|
||||
xmlns:th="https://www.thymeleaf.org"
|
||||
th:lang="${#locale.toLanguageTag}"
|
||||
th:fragment="html (header, content, footer)"
|
||||
lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||
<title th:text="${title}"></title>
|
||||
<script no-pjax th:inline="javascript">
|
||||
const dark_theme = /*[[${theme.config.style.dark_color_schema}]]*/;
|
||||
const light_theme = /*[[${theme.config.style.light_color_schema}]]*/;
|
||||
const default_mode = /*[[${theme.config.style.default_schema_mode}]]*/;
|
||||
const pixel_status = /*[[${theme.config.style.pixel_style}]]*/;
|
||||
</script>
|
||||
<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:if="${theme.config.basic.pjax}"
|
||||
th:src="@{/assets/dist/libs/pjax.js?v={version}(version=${theme.spec.version})}"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<section class="center container">
|
||||
<header class="header">
|
||||
<th:block th:replace="~{modules/header :: header(isHome = true)}"/>
|
||||
</header>
|
||||
<main>
|
||||
<div class="content">
|
||||
<th:block th:replace="${content}"/>
|
||||
</div>
|
||||
</main>
|
||||
</section>
|
||||
<footer class="footer">
|
||||
<th:block th:replace="~{modules/footer}"/>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,59 @@
|
||||
<!DOCTYPE html>
|
||||
<html
|
||||
xmlns:th="https://www.thymeleaf.org"
|
||||
th:replace="~{modules/layout :: html(title = |#{page.moments.title} - ${site.title}|, header = null, content = ~{::content}, footer = null)}"
|
||||
>
|
||||
<th:block th:fragment="content">
|
||||
<article
|
||||
class="moment on-list post"
|
||||
th:each="moment,iterStat : ${moments.items}"
|
||||
th:with="content=${moment.spec.content}"
|
||||
th:attr="x-data=|{name:'${moment.metadata.name}',showComment:false}|">
|
||||
<header>
|
||||
<div class="post-meta">
|
||||
<span class="post-date" th:text="${#dates.format(moment.spec.releaseTime,'yyyy-MM-dd')}">
|
||||
Moment CreateTime
|
||||
</span>
|
||||
<span class="post-author" th:with="owner = ${moment.owner}" th:text="${owner.displayName}">
|
||||
Author
|
||||
</span>
|
||||
</div>
|
||||
</header>
|
||||
<section class="post-content" th:utext="${content.html}">Moment Content...</section>
|
||||
<th:block th:with="medium=${moment.spec.content.medium}">
|
||||
<div
|
||||
th:unless="${#lists.isEmpty(moments)}"
|
||||
class="moment-media"
|
||||
th:classappend="${(#lists.size(medium) > 4 ? 'grid-cols-3' : '') + (#lists.size(medium) == 1 ? 'grid-cols-1' :'') + ((#lists.size(medium) > 1 && #lists.size(medium) < 5) ? 'grid-cols-2' :'')}"
|
||||
>
|
||||
<div class="" th:each="media : ${medium}">
|
||||
<a th:class="|glightbox|" th:data-gallery="|gallery${iterStat.count}|" th:href="${media.url}">
|
||||
<img
|
||||
th:if="${#strings.equals(media.type,'PHOTO')}"
|
||||
class="transform-gpu rounded-lg object-cover"
|
||||
th:src="${media.url}"
|
||||
/>
|
||||
</a>
|
||||
<div th:if="${#strings.equals(media.type,'VIDEO')}">
|
||||
<video controls th:src="${media.url}"></video>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</th:block>
|
||||
</article>
|
||||
<section class="pagination" th:if="${moments.hasPrevious() || moments.hasNext()}">
|
||||
<div class="pagination__buttons">
|
||||
<span th:if="${moments.hasPrevious()}">
|
||||
<a data-pjax th:href="@{${moments.prevUrl}}" class="button inline prev">
|
||||
<span class="button__text">< Prev</span>
|
||||
</a>
|
||||
</span>
|
||||
<span th:if="${moments.hasNext()}">
|
||||
<a data-pjax th:href="@{${moments.nextUrl}}" class="button inline next">
|
||||
<span class="button__text">Next </span>
|
||||
</a>
|
||||
</span>
|
||||
</div>
|
||||
</section>
|
||||
</th:block>
|
||||
</html>
|
||||
@@ -0,0 +1,20 @@
|
||||
<!DOCTYPE html>
|
||||
<html
|
||||
xmlns:th="https://www.thymeleaf.org"
|
||||
th:replace="~{modules/layout :: html(title = |${singlePage.spec.title} - ${site.title}|, header = null, content = ~{::content}, footer = null)}"
|
||||
>
|
||||
<th:block th:fragment="content">
|
||||
<article class="post">
|
||||
<header>
|
||||
<h1 class="post-title" th:text="${singlePage.spec.title}">Post Title</h1>
|
||||
</header>
|
||||
<section class="post-content">
|
||||
<div th:utext="${singlePage.content.content}">Post Content</div>
|
||||
</section>
|
||||
</article>
|
||||
<section class="comment" th:if="${haloCommentEnabled}">
|
||||
<h2>Comments</h2>
|
||||
<halo:comment group="content.halo.run" kind="SinglePage" th:attr="name=${singlePage.metadata.name}"/>
|
||||
</section>
|
||||
</th:block>
|
||||
</html>
|
||||
@@ -0,0 +1,54 @@
|
||||
<!DOCTYPE html>
|
||||
<html
|
||||
xmlns:th="https://www.thymeleaf.org"
|
||||
th:replace="~{modules/layout :: html(title = |${post.spec.title} - ${site.title}|, header = null, content = ~{::content}, footer = null)}"
|
||||
>
|
||||
<th:block th:fragment="content">
|
||||
<article class="post">
|
||||
<header>
|
||||
<h1 class="post-title" th:text="${post.spec.title}">Post Title</h1>
|
||||
<div class="post-meta">
|
||||
<span class="post-date"
|
||||
th:text="${#dates.format(post.spec.publishTime,'yyyy-MM-dd')}">Publish Time</span>
|
||||
<span class="post-author" th:text="${post.owner.displayName}">Author</span>
|
||||
</div>
|
||||
<span class="post-tags">
|
||||
<span class="post-tag" th:each="tag : ${post.tags}">
|
||||
<a data-pjax
|
||||
th:href="@{${tag.status.permalink}}"
|
||||
th:title="${tag.spec.displayName}"
|
||||
th:text="'#'+${tag.spec.displayName}"
|
||||
>#Tag
|
||||
</a>
|
||||
</span>
|
||||
</span>
|
||||
</header>
|
||||
<section class="post-content">
|
||||
<div th:utext="${post.content.content}" id="content">Post Content</div>
|
||||
</section>
|
||||
</article>
|
||||
<section class="toc" th:if="${theme.config.basic.show_toc}"></section>
|
||||
<section class="pagination">
|
||||
<div class="pagination__title">
|
||||
<span class="pagination__title-h">Read other posts</span>
|
||||
<hr/>
|
||||
</div>
|
||||
<div class="pagination__buttons" th:with="postCursor=${postFinder.cursor(post.metadata?.name)}">
|
||||
<span th:if="${postCursor.hasPrevious()}">
|
||||
<a data-pjax th:href="@{${postCursor.previous?.status?.permalink}}" class="button prev inline">
|
||||
<span class="button__text" th:text="|< ${postCursor.previous?.spec?.title}|">prevPost</span>
|
||||
</a>
|
||||
</span>
|
||||
<span th:if="${postCursor.hasNext()}">
|
||||
<a data-pjax th:href="@{${postCursor.next?.status?.permalink}}" class="button next inline">
|
||||
<span class="button__text" th:text="|${postCursor.next?.spec?.title} >|">nextPost</span>
|
||||
</a>
|
||||
</span>
|
||||
</div>
|
||||
</section>
|
||||
<section class="comment" th:if="${haloCommentEnabled}">
|
||||
<h2>Comments</h2>
|
||||
<halo:comment group="content.halo.run" kind="Post" th:attr="name=${post.metadata.name}"/>
|
||||
</section>
|
||||
</th:block>
|
||||
</html>
|
||||
@@ -0,0 +1,41 @@
|
||||
<!DOCTYPE html>
|
||||
<html
|
||||
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:block th:fragment="content">
|
||||
<article class="post">
|
||||
<header>
|
||||
<h1 class="post-title"
|
||||
th:text="'Tag:'+${tag.spec.displayName}+' ['+${tag.status.visiblePostCount?:0}+']'">
|
||||
Tag: [n]
|
||||
</h1>
|
||||
</header>
|
||||
<section class="post-content">
|
||||
<ul>
|
||||
<li class="post-list" th:each="post : ${posts.items}">
|
||||
<a data-pjax th:href="@{${post.status.permalink}}">
|
||||
<span th:text="${#dates.format(post.spec.publishTime,'yyyy-MM-dd')}">Publish Time</span>
|
||||
<span> :: </span>
|
||||
<span class="post-list-title" th:text="${post.spec.title}">Post Title</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</article>
|
||||
<section class="pagination" th:if="${posts.hasPrevious() || posts.hasNext()}">
|
||||
<div class="pagination__buttons">
|
||||
<span th:if="${posts.hasPrevious()}">
|
||||
<a data-pjax th:href="@{${posts.prevUrl}}" class="button inline prev">
|
||||
<span class="button__text">< Prev</span>
|
||||
</a>
|
||||
</span>
|
||||
<span th:if="${posts.hasNext()}">
|
||||
<a data-pjax th:href="@{${posts.nextUrl}}" class="button inline next">
|
||||
<span class="button__text">Next ></span>
|
||||
</a>
|
||||
</span>
|
||||
</div>
|
||||
</section>
|
||||
</th:block>
|
||||
</html>
|
||||
@@ -0,0 +1,23 @@
|
||||
<!DOCTYPE html>
|
||||
<html
|
||||
xmlns:th="https://www.thymeleaf.org"
|
||||
th:replace="~{modules/layout :: html(title = |#{page.tags.title} - ${site.title}|, header = null, content = ~{::content}, footer = null)}"
|
||||
>
|
||||
<th:block th:fragment="content">
|
||||
<article class="post">
|
||||
<header>
|
||||
<h1 class="post-title">Tags</h1>
|
||||
</header>
|
||||
<section class="post-content">
|
||||
<ul class="post-tags">
|
||||
<li th:each="tag: ${tags}">
|
||||
<a data-pjax class="post-tag" th:href="@{${tag.status.permalink}}"
|
||||
th:text="${tag.spec.displayName}">
|
||||
</a>
|
||||
<span th:text="' ['+${tag.status.visiblePostCount?:0}+']'"></span>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</article>
|
||||
</th:block>
|
||||
</html>
|
||||
Reference in New Issue
Block a user