-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
38 lines (38 loc) · 1.41 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<link rel="shortcut icon" href="/src/assets/favicon.svg" />
<title>Vite App</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
阅读量: <span id="/" class="waline-pageview-count"></span> 评论数:
<span id="/" class="waline-comment-count"></span>页面阅读量 1:
<span class="waline-pageview-count" data-path="/guide/features/pageview.html"></span>页面阅读量
2:<span class="waline-pageview-count" data-path="/guide/features/i18n.html"></span>
<div id="root"></div>
<script type="module">
import Sodesu from '/src/index.tsx';
import remarkRenderer from '/src/utils/remarkRenderer.ts';
import 'virtual:uno.css';
Sodesu.init({
el: '#root',
serverURL: 'https://walinejs.comment.lithub.cc',
dark: 'auto',
path:
window.location.pathname === '/' ? '/' : window.location.pathname.replace(/\/$/, '.html'),
pageview: true,
comment: true,
commentClassName: 'prose',
renderPreview: remarkRenderer,
});
</script>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/themes/prism-tomorrow.min.css"
/>
</body>
</html>