halo-theme-dream2.0-plus/templates/security_link.html

42 lines
2.7 KiB
HTML
Raw Normal View History

2024-04-06 17:30:35 +08:00
<!DOCTYPE html>
<html lang="zh" xmlns:th="https://www.thymeleaf.org"
th:class="${theme.config.basic_style.theme_style}"
th:with="urlCode = ${param.target},
2024-04-07 08:30:52 +08:00
url = ${#uris.unescapePath(urlCode)},
title = ${singlePage.spec.title} + ' - ' + ${site.title},
contributor = ${contributorFinder.getContributor(theme.config.basic_info.metadata_name)},
enableComment = false, isPost = false, canonical = ${theme.config.security_link_config.security_link_url}">
2024-04-06 17:30:35 +08:00
<head>
<meta charset="utf-8"/>
2024-04-07 08:30:52 +08:00
<title th:text="${title + (#strings.isEmpty(site.subtitle) ? '' : '|' + site.subtitle)}"></title>
2024-04-06 17:30:35 +08:00
<link rel="preload stylesheet" as="style" th:href="@{/assets/css/theme.min.css(mew=${theme.spec.version})}">
2024-04-07 08:30:52 +08:00
<link th:if="${theme.config.enhance.cursor_style != 'none'}" rel="stylesheet" th:href="@{/assets/css/cursor.min.css(mew=${theme.spec.version})}">
2024-04-06 17:30:35 +08:00
<link data-pjax rel="preload stylesheet" as="style" th:href="@{/assets/css/security-link.min.css(mew=${theme.spec.version})}"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<th:block th:replace="~{common/config}"/>
</head>
<body>
<div class="content">
<div class="content-title">
<img th:src="${#strings.isEmpty(theme.config.security_link_config.security_link_site_img) ? site.favicon : theme.config.security_link_config.security_link_site_img}" alt="favicon">
2024-04-07 06:58:20 +08:00
<span th:if="${!#strings.isEmpty(theme.config.security_link_config.security_link_site_title)}"
th:with="t = ${theme.config.security_link_config.security_link_site_title},
t1 = ${#strings.replace(t, '{title}', site.title)}"
th:title="${t1}">[[${t1}]]</span>
2024-04-06 17:30:35 +08:00
</div>
<div class="others">
<div class="others-tip">
<img th:src="${#strings.isEmpty(theme.config.security_link_config.security_link_tip_img) ? #theme.assets('/img/warning.webp') : theme.config.security_link_config.security_link_tip_img}" alt="">
<span>[[${#strings.isEmpty(theme.config.security_link_config.security_link_tip_desc) ? '请注意您的账号和财产安全!': theme.config.security_link_config.security_link_tip_desc}]]</span>
</div>
2024-04-07 06:58:20 +08:00
<div class="others-topic" th:with="oDesc = ${theme.config.security_link_config.security_link_jump_desc},
o1 = ${#strings.replace(oDesc, '{title}', site.title)},
o2 = ${#strings.replace(o1, '{url}', url)}" th:utext="${o2}">
2024-04-06 17:30:35 +08:00
</div>
<div class="others-end">
<a th:href="${url}" target="_self">继续</a>
</div>
</div>
</div>
</body>
</html>