Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<script type="module" src="./assets/page.ts"></script>
</template>
<template name="hero">
<section th:unless="${#strings.isEmpty(singlePage.spec.cover)}">
<section th:if="${theme.config.layout.content_header}" th:unless="${#strings.isEmpty(singlePage.spec.cover)}">
<div class="relative flex items-center" th:styleappend="|height:${theme.config.post.cover_height ?: '24rem'}|">
<div
class="before:z-1 relative size-full bg-cover bg-center bg-no-repeat before:absolute before:inset-0 before:bg-black/40"
Expand Down Expand Up @@ -96,7 +96,7 @@ <h1 class="text-center text-2xl text-white sm:text-5xl" th:text="${singlePage.sp
</div>
</div>
<h1
th:if="${#strings.isEmpty(singlePage.spec.cover)} or ${theme.config.post.title_position == 'content'}"
th:if="${#strings.isEmpty(singlePage.spec.cover)} or ${theme.config.post.title_position == 'content'} or ${not theme.config.layout.content_header}"
class="my-3 text-3xl font-medium dark:text-slate-50"
th:text="${singlePage.spec.title}"
></h1>
Expand Down
4 changes: 2 additions & 2 deletions src/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</script>
</template>
<template name="hero">
<section th:unless="${#strings.isEmpty(post.spec.cover)}">
<section th:if="${theme.config.layout.content_header}" th:unless="${#strings.isEmpty(post.spec.cover)}">
<div class="relative flex items-center" th:styleappend="|height:${theme.config.post.cover_height ?: '24rem'}|">
<div
class="before:z-1 relative size-full bg-cover bg-center bg-no-repeat before:absolute before:inset-0 before:bg-black/40"
Expand Down Expand Up @@ -127,7 +127,7 @@ <h1 class="text-center text-2xl text-white sm:text-5xl" th:text="${post.spec.tit
</div>
</div>
<h1
th:if="${#strings.isEmpty(post.spec.cover)} or ${theme.config.post.title_position == 'content'}"
th:if="${#strings.isEmpty(post.spec.cover)} or ${theme.config.post.title_position == 'content'} or ${not theme.config.layout.content_header}"
class="mt-3 text-3xl font-medium dark:text-slate-50"
th:text="${post.spec.title}"
></h1>
Expand Down