Skip to content

Commit

Permalink
fix: 优化、增加SEO标签
Browse files Browse the repository at this point in the history
  • Loading branch information
sumingcheng committed Apr 9, 2024
1 parent 13faec3 commit db20203
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,38 @@
<meta charset='UTF-8' />
<link rel='icon' href='/favicon.ico' />
<meta name='viewport' content='width=device-width, initial-scale=1.0' />
<meta charset='UTF-8'>
<title>Vue3-ChatGPT</title>
<base href='/'>
<base href='/' />
<!-- 社交媒体元标签 -->
<meta property='og:title' content='快速部署ChatGPT聊天应用 | Vue3-ChatGPT' />
<meta property='og:description' content='使用Vue3-ChatGPT快速部署你的ChatGPT聊天客户端,享受智能化的聊天体验。' />
<meta property='og:url' content='https://sumingcheng.github.io/Vue3-TS-ChatGPT/#/' />
<meta property='og:type' content='website' />
<!-- Twitter Card数据 -->
<meta name='twitter:title' content='快速部署ChatGPT聊天应用 | Vue3-ChatGPT' />
<meta name='twitter:description' content='使用Vue3-ChatGPT快速部署你的ChatGPT聊天客户端,享受智能化的聊天体验。' />
</head>

<body>
<div id='app'></div>
<script type='module' src='/src/main.ts'></script>
<script id='MathJax-script' defer async src='/cdn.jsdelivr.net_npm_mathjax@3_es5_tex-mml-chtml.js'></script>
<script id='MathJax-script' defer src='/cdn.jsdelivr.net_npm_mathjax@3_es5_tex-mml-chtml.js'></script>
<script>
MathJax = {
window.MathJax = {
tex: {
inlineMath: [['$', '$'], ['\\(', '\\)']],
displayMath: [['$$', '$$'], ['\\[', '\\]']]
},
svg: {
fontCache: 'global',
scale: 110, // 放大公式
minScale: 80 // 公式的最小放大比例
scale: 110,
minScale: 80
},
options: {
renderActions: {
findScript: [10, function(doc) {
for (const node of document.querySelectorAll('span.math, div.math')) {
const math = new doc.options.MathItem(node.textContent, doc.inputJax[0], false, node)
const math = new doc.options.MathItem(node.textContent, doc.inputJax[0], node)
const text = document.createTextNode('')
node.parentNode.replaceChild(text, node)
math.start = { node: text, delim: '', n: 0 }
Expand All @@ -40,7 +47,6 @@
}
}
}

</script>
</body>

Expand Down

0 comments on commit db20203

Please sign in to comment.