The Blog
This commit is contained in:
26
tmpls/blog.html
Normal file
26
tmpls/blog.html
Normal file
@ -0,0 +1,26 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Blog</title>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="stylesheet" href="/simple.min.css" />
|
||||
</head>
|
||||
<body>
|
||||
<h1>Blog posts</h1>
|
||||
<p>
|
||||
This page aggregates all blog posts.
|
||||
<a href="/blog-welcome.md">Welcome (or not) post</a>
|
||||
</p>
|
||||
<ul>
|
||||
<#BLOG_POSTS>
|
||||
</ul>
|
||||
|
||||
<footer>
|
||||
<a href="/">HOME</a>
|
||||
</footer>
|
||||
|
||||
<#if HOTRELOAD>
|
||||
<script src="/hotreload.js"></script>
|
||||
<#endif>
|
||||
</body>
|
||||
</html>
|
@ -10,6 +10,7 @@
|
||||
<div style="float: left;">
|
||||
<a class="button" href="/">home</a>
|
||||
<a class="button" href="/#projects">projects</a>
|
||||
<a class="button" href="/blog">blog</a>
|
||||
</div>
|
||||
<p>Written in C™. <a href="https://gitlab.com/kamkow1/aboba" target="_blank">Check out the source code here!</a></p>
|
||||
<section id="projects">
|
||||
|
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