Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
2022-05-12 20:30:31 +05:30
parent 216ca60d6c
commit 0e6d6d79a2
10 changed files with 345 additions and 56 deletions

View File

@@ -1,2 +1,3 @@
<p><a href="/archive/tags.html">Tags</a></p>
Here you can find all my previous posts:
$partial("templates/post-list.html")$

View File

@@ -13,7 +13,6 @@
<a href="/">nattopages</a>
</div>
<nav>
<a href="/">Home</a>
<a href="/about.html">About</a>
<a href="/contact.html">Contact</a>
<a href="/archive.html">Archive</a>
@@ -21,7 +20,6 @@
</header>
<main role="main">
<h1>$title$</h1>
$body$
</main>

View File

@@ -1,7 +1,7 @@
<ul>
$for(posts)$
<li>
<a href="$url$">$title$</a> - $date$
<a href="$url$">$title$</a> - $date$
</li>
$endfor$
</ul>

View File

@@ -3,6 +3,9 @@
Posted on $date$
$if(author)$
by $author$
$endif$ <br>
$if(tags)$
Tags: $tags$
$endif$
</section>
<section>

2
templates/tag.html Normal file
View File

@@ -0,0 +1,2 @@
Here are all the posts marked with tag $tag$:
$partial("templates/post-list.html")$

6
templates/tags.html Normal file
View File

@@ -0,0 +1,6 @@
$if(tags)$
Here is a list of all the tags:
<div class="tags"><p>$tags$</p></div>
$else$
There are no tags
$endif$