feat: 详情页seo预渲染,添加Open Graph Protocol头信息

This commit is contained in:
osiris
2023-12-12 18:18:10 +08:00
parent c8f6ec1d5d
commit c4a2b7159f
4 changed files with 98 additions and 29 deletions
+17 -4
View File
@@ -1,10 +1,21 @@
<!doctype html>
<html lang="en">
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<link rel="icon" type="image/svg+xml" href="/src/assets/logo.png" />
<link rel="shortcut icon" type="image/svg+xml" href="/src/assets/logo.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title><%= title %></title>
<meta name="renderer" content="webkit">
<meta name="keywords" content="">
<meta name="description" content="">
<meta property="og:locale" content="zh_CN">
<meta property="og:title" content="">
<meta property="og:site_name" content="">
<meta property="og:description" content="">
<meta property="og:type" content="website">
<meta property="og:image" content="https://baseran2.oss-cn-shenzhen.aliyuncs.com/toools-web/logo.png">
<meta property="og:url" content="https://tools.ranblogs.com/">
<title></title>
<!-- 百度统计 -->
<script>
var _hmt = _hmt || [];
@@ -17,8 +28,10 @@
</script>
</head>
<body>
<!--[if lt IE 9]>
<div class="notice chromeframe">您的浏览器版本<strong>很旧很旧</strong>,为了正常地访问网站,请升级您的浏览器</div>
<![endif]-->
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>