67 lines
		
	
	
		
			4.3 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			67 lines
		
	
	
		
			4.3 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <head xmlns:th="https://www.thymeleaf.org" th:fragment="head">
 | |
|   <title th:text="${title}"></title>
 | |
|   <!--<#if settings.enable_sw?? && settings.enable_sw != "false">-->
 | |
|   <!--    <script src="${(settings.enable_sw == "uninstall")?then('${theme_base!}/source/js/sw.min.js?mew=2.1.2','/sw.min.js?mew=2.1.2${settings.enable_sw!}')}"></script>-->
 | |
|   <!--</#if>-->
 | |
|   <meta charset="utf-8"/>
 | |
|   <!--<#assign description=(post??)?then(post.summary!, meta_description!)!user.description!>-->
 | |
|   <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
 | |
|   <meta http-equiv="x-dns-prefetch-control" content="on">
 | |
|   <meta name="keywords" content="${meta_keywords!}"/>
 | |
|   <meta name="description" content="${description!}">
 | |
|   <meta name="author" content="${user.nickname!}">
 | |
|   <meta name="site" content="${blog_url!}">
 | |
|   <meta property="og:type" content="website">
 | |
|   <meta property="og:title" content="${title!}">
 | |
|   <meta property="og:url" content="${canonical}">
 | |
|   <meta property="og:site_name" content="${title!}">
 | |
|   <meta property="og:description" content="${description!}">
 | |
|   <meta property="og:locale" content="zh">
 | |
|   <meta property="og:image" content="${user.avatar!}">
 | |
|   <meta name="twitter:card" content="summary">
 | |
|   <meta name="twitter:title" content="${title!}">
 | |
|   <meta name="twitter:description" content="${description!}">
 | |
|   <meta name="twitter:image" content="${user.avatar!}">
 | |
|   <link rel="canonical" href="${canonical!}"/>
 | |
|   <link rel="alternative" href="${atom_url!}" title="${blog_title!}" type="application/atom+xml">
 | |
| 
 | |
|   <link rel="preload stylesheet" as="style" th:href="@{/assets/css/theme.min.css(mew=${theme.spec.version})}">
 | |
|   <link rel="preload stylesheet" as="style" th:href="@{/assets/lib/font-awesome@4.7.0/css/font-awesome.min.css}">
 | |
|   <link rel="preload stylesheet" as="style" th:href="@{/assets/css/style.min.css(mew=${theme.spec.version})}">
 | |
| 
 | |
|   <!--<#if post?? || is_journals?? || is_error??>-->
 | |
|   <!--    <link data-pjax rel="preload stylesheet" as="style"-->
 | |
|   <!--          th:href="@{/assets/lib/highlightjs@11.5.1/styles/${settings.code_pretty!'atom-one-light'}.min.css}"/>-->
 | |
|   <!--    <link data-pjax rel="preload stylesheet" as="style" th:href="@{/assets/css/post.min.css(mew=${theme.spec.version})}"/>-->
 | |
|   <!--    <#assign enable_katex = (metas?? && metas.enable_katex?? && metas.enable_katex?trim!='')?then(metas.enable_katex?trim, (settings.enable_katex!false)?c)>-->
 | |
|   <!--    <#if enable_katex=='true'>-->
 | |
|   <!--        <link data-pjax rel="preload stylesheet" as="style" th:href="@{/assets/lib/katex@0.12.0/katex.min.css(mew=${theme.spec.version})}"/>-->
 | |
|   <!--    </#if>-->
 | |
|   <!--    <#assign enable_share = (post?? && (metas?? && metas.enable_share?? && metas.enable_share?trim!='')?then(metas.enable_share?trim, (settings.enable_post_share!true)?c) == 'true') || (is_journals?? && settings.enable_journals_share!true)>-->
 | |
|   <!--    <#if enable_share>-->
 | |
|   <!--        <link data-pjax rel="preload stylesheet" as="style" th:href="@{/assets/css/dshare.min.css(mew=${theme.spec.version})}">-->
 | |
|   <!--    </#if>-->
 | |
|   <!--</#if>-->
 | |
| 
 | |
|   <link rel="stylesheet" th:href="@{/assets/css/mew-custom.min.css(mew=${theme.spec.version})}">
 | |
|   <!--<#if is_post?? || is_sheet?? || is_photos?? || is_journals??>-->
 | |
|   <!--    <link data-pjax rel="stylesheet" th:href="@{/assets/lib/fancybox@5.3.7/jquery.fancybox.min.css}>-->
 | |
|   <!--</#if>-->
 | |
|   <link rel="stylesheet" th:href="@{/assets/lib/qmsg/qmsg.min.css}">
 | |
| 
 | |
|   <!--<#if settings.cursor_style?? && settings.cursor_style!='none'>-->
 | |
|   <!--    <link rel="stylesheet" th:href="@{/assets/css/cursor/${settings.cursor_style}.min.css(mew=${theme.spec.version})}">-->
 | |
|   <!--</#if>-->
 | |
| 
 | |
|   <th:block th:replace="~{common/config}"/>
 | |
| 
 | |
|   <script th:src="@{/assets/lib/jquery@3.5.1/jquery.min.js}"></script>
 | |
| 
 | |
|   <script th:if="${theme.config.enhance.enable_patch}" src="//cdn.jsdelivr.net/gh/nineya/halo-theme-dream@master/src/patch.js"></script>
 | |
|   <link th:if="${!#strings.isEmpty(theme.config.custom.external_css)}" rel="stylesheet" th:href="${theme.config.custom.external_css}">
 | |
| 
 | |
|   <style th:if="${!#strings.isEmpty(theme.config.custom.inline_css)}" type="text/css" th:text="${theme.config.custom.inline_css}"></style>
 | |
|   [(${theme.config.custom.external_js_head})]
 | |
|   <script th:if="${!#strings.isEmpty(theme.config.custom.inline_js_head)}" type="text/javascript" th:text="${theme.config.custom.inline_js_head}">
 | |
|   </script>
 | |
| </head> |