style: hide when content is empty
This commit is contained in:
@@ -4,7 +4,8 @@
|
|||||||
th:replace="~{modules/layout :: html(title = ${site.title}, header = null, content = ~{::content}, footer = null)}"
|
th:replace="~{modules/layout :: html(title = ${site.title}, header = null, content = ~{::content}, footer = null)}"
|
||||||
>
|
>
|
||||||
<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.basic.index_notice_title) and not #strings.isEmpty(theme.config.basic.index_notice_content)}">
|
||||||
<h1 class="typed-text" th:text="${theme.config.basic.index_notice_title}"></h1>
|
<h1 class="typed-text" th:text="${theme.config.basic.index_notice_title}"></h1>
|
||||||
<div th:utext="${theme.config.basic.index_notice_content}"></div>
|
<div th:utext="${theme.config.basic.index_notice_content}"></div>
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
Reference in New Issue
Block a user