You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.8 KiB
Plaintext

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<!DOCTYPE html>
<html>
<head>
<%- include('./_blocks/head', { isHome: false,siteTitle: themeConfig.siteName }) %>
</head>
<body>
<script type="text/javascript">
if (/mobile/i.test(navigator.userAgent) || /android/i.test(navigator.userAgent)) {
document.body.classList.add('mobile')
}
</script>
<div>
<div class="inner">
<h2><%= post.title %></h2>
<%- post.content %>
<h3>&nbsp;</h3>
<% if (site.customConfig.showtag) { %>
<% post.tags.forEach((tag) => { %>
<a href="<%= tag.link %>">#<%= tag.name %></a>&nbsp;
<% }); %>
<% } %>
<% if (site.customConfig.homeback) { %>
<div style="text-align: right;">
↶ <a href="/">返回首页</a>
</div>
<% } %>
<% if (site.customConfig.twikoo) { %>
<h3>&nbsp;</h3>
<div id="tcomment"></div>
<script src="https://cdn.staticfile.org/twikoo/<%= site.customConfig.tversion %>/twikoo.all.min.js"></script>
<script>
twikoo.init({
envId: '<%= site.customConfig.twikoo %>', // 腾讯云环境填 envIdVercel 环境填地址https://xxx.vercel.app
el: '#tcomment', // 容器元素
// region: 'ap-guangzhou', // 环境地域,默认为 ap-shanghai腾讯云环境填 ap-shanghai 或 ap-guangzhouVercel 环境不填
// path: location.pathname, // 用于区分不同文章的自定义 js 路径,如果您的文章路径不是 location.pathname需传此参数
lang: 'zh-CN', // 用于手动设定评论区语言,支持的语言列表 https://github.com/imaegoo/twikoo/blob/main/src/client/utils/i18n/index.js
})
</script>
<% } %>
</div>
</div>
<%- include('./_blocks/scripts') %>
</body>
</html>