halo-theme-dream2.0-plus
Version:
45 lines (44 loc) • 2.42 kB
HTML
<html th:lang="${#locale.toLanguageTag}" xmlns:th="https://www.thymeleaf.org"
th:class="${theme.config.basic_style.theme_style}"
th:classappend="${theme.config.basic_info.page_switch_animation ? '' : 'loaded'}"
th:fragment="layout (showTitle, canonical, content, isPost, hideSidebar)">
<th:block th:with="contributor = ${contributorFinder.getContributor(theme.config.basic_info.metadata_name)},
enableComment = ${baseEnableComment == true && site.comment.enable},
logonUserName = ${#authentication.name != 'anonymousUser' ? #authentication.name : ''}">
<th:block th:with="stats = ${siteStatsFinder.getStats()}">
<th:block th:replace="~{common/head :: head}"/>
<body>
<th:block th:replace="~{common/navbar}"/>
<th:block th:if="${theme.config.basic_style.enable_banner != 'false'}">
<th:block th:replace="~{common/banner :: banner}"/>
</th:block>
<section class="section" th:classappend="${theme.config.basic_info.header_fixed && !theme.config.basic_style.banner_full_screen ? 'section-top' : ''}">
<div th:class="${theme.config.basic_style.sidebar_column != 'all' ? 'container two-column dream2-container-content-main' : 'container dream2-container-content-main' }"
th:classappend="${hideSidebar ? 'hide-sidebar' : ''}">
<div class="columns">
<div class="column column-main pjax">
<th:block th:replace="${content}"/>
</div>
<th:block
th:if="${theme.config.basic_style.sidebar_column!='only-right'}">
<th:block th:replace="~{common/widget :: widget('left')}"/>
</th:block>
<th:block
th:if="${theme.config.basic_style.sidebar_column!='only-left'}">
<th:block th:replace="~{common/widget :: widget('right')}"/>
</th:block>
</div>
</div>
</section>
<th:block th:replace="~{common/actions}"/>
<th:block th:replace="~{common/footer}"/>
<th:block th:replace="~{common/scripts}"/>
<th:block th:replace="~{common/pjax_animation}"/>
<th:block th:utext="${theme.config.custom.inline_body_html}"></th:block>
<th:block th:if="${theme.config.pop_notice.show_pop_notice != null and theme.config.pop_notice.show_pop_notice != 'false'}">
<th:block th:replace="~{'notice/' + ${theme.config.pop_notice.show_pop_notice}}"/>
</th:block>
</body>
</th:block>
</th:block>
</html>