This commit is contained in:
kamkow1
2025-06-18 00:44:18 +02:00
parent 9bb248ee03
commit 5db22711be
11 changed files with 286 additions and 25 deletions

26
tmpls/blog.html Normal file
View 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>

View File

@ -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
View 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>