-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
33 lines (32 loc) · 1.11 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>My Blog</title>
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" />
<script src="theme-manager.js"></script>
<script src="script.js"></script>
</head>
<body>
<div id="blog-container"></div>
<script>
let app = undefined
const user ="sprinting"
const blog_source ="example-blog-dump"
document.addEventListener('DOMContentLoaded', async () => {
const themeManager = new ThemeManager(user, blog_source);
await themeManager.initialize();
const _app = new FrontendStaticBlogGenerator(
user,
blog_source,
"blog-container"
);
await _app.generate().then(()=>{app=_app});
document.querySelector('title').innerHTML = app.config.title;
});
</script>
</body>
</html>