templating (ryuji) done

This commit is contained in:
jetstream0
2023-07-30 14:28:18 -07:00
commit 003f4eec72
17 changed files with 1222 additions and 0 deletions

View File

@@ -0,0 +1 @@
<li><a href="/posts/[[ post.slug ]]">[[ post.title ]]</a></li>

View File

@@ -0,0 +1 @@
<a style="position: absolute; left: 10px; top: 10px;"><- Get me outta here!</a>

20
templates/index.html Normal file
View File

@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>prussia fan club</title>
</head>
<body>
<div>
<ul>
[[ for:posts:post ]]
[[ component:post-listing ]]
[[ endfor ]]
</ul>
</div>
<div>
<p>This is my blog. I also have a <a href="https://prussia.dev">portfolio</a>, <a href="https://prussia.dev/retro">retro style personal website</a>, and a place where you can <a href="https://prussia.dev/sample">hire me</a>.</p>
</div>
</body>
</html>

26
templates/post.html Normal file
View File

@@ -0,0 +1,26 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>[[ post.title ]]</title>
</head>
<body>
[[ component:return ]]
<div>
<div id="post-info">
<h1>[[ post.title ]]</h1>
<div>
<span><span [[ if:author_expected ]]title="(obviously)"[[ endif ]]>By [[ post.author ]]</span> | <span>[[ post.date ]]</span></span>
</div>
</div>
<input id="show-md" type="checkbox"/><label for="html">Show MD</label>
<div id="post-html">
[[ html:post.html ]]
</div>
<div id="post-md">
[[ post.md ]]
</div>
</div>
</body>
</html>