templating (ryuji) done
This commit is contained in:
1
templates/components/post-listing.html
Normal file
1
templates/components/post-listing.html
Normal file
@@ -0,0 +1 @@
|
||||
<li><a href="/posts/[[ post.slug ]]">[[ post.title ]]</a></li>
|
||||
1
templates/components/return.html
Normal file
1
templates/components/return.html
Normal file
@@ -0,0 +1 @@
|
||||
<a style="position: absolute; left: 10px; top: 10px;"><- Get me outta here!</a>
|
||||
20
templates/index.html
Normal file
20
templates/index.html
Normal 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
26
templates/post.html
Normal 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>
|
||||
Reference in New Issue
Block a user