The Blog
This commit is contained in:
22
tmpls/template-blog.html
Normal file
22
tmpls/template-blog.html
Normal file
@ -0,0 +1,22 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title><#BLOG_POST_TITLE></title>
|
||||
<link rel="stylesheet" href="/simple.min.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="content"></div>
|
||||
<footer>
|
||||
<a href="/">HOME</a>
|
||||
</footer>
|
||||
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
|
||||
<script>
|
||||
document.getElementById("content").innerHTML = marked.parse(`<#BLOG_POST_MARKDOWN>`);
|
||||
</script>
|
||||
|
||||
<#if HOTRELOAD>
|
||||
<script src="/hotreload.js"></script>
|
||||
<#endif>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user