aboutsummaryrefslogtreecommitdiff
path: root/site
diff options
context:
space:
mode:
Diffstat (limited to 'site')
-rw-r--r--site/pastebins.html5
-rw-r--r--site/templates/pastebin-list.html7
-rw-r--r--site/templates/pastebin.html8
-rw-r--r--site/templates/post.html3
4 files changed, 20 insertions, 3 deletions
diff --git a/site/pastebins.html b/site/pastebins.html
new file mode 100644
index 0000000..0afa928
--- /dev/null
+++ b/site/pastebins.html
@@ -0,0 +1,5 @@
+---
+title: Pastebins listing
+---
+
+$partial("templates/pastebin-list.html")$
diff --git a/site/templates/pastebin-list.html b/site/templates/pastebin-list.html
new file mode 100644
index 0000000..4c98c80
--- /dev/null
+++ b/site/templates/pastebin-list.html
@@ -0,0 +1,7 @@
+<ul>
+ $for(pastebins)$
+ <li>
+ <a href="$url$">$title$</a> - $date$
+ </li>
+ $endfor$
+</ul>
diff --git a/site/templates/pastebin.html b/site/templates/pastebin.html
new file mode 100644
index 0000000..7aa2775
--- /dev/null
+++ b/site/templates/pastebin.html
@@ -0,0 +1,8 @@
+<article>
+ <section class="header">
+ Posted on $date$
+ </section>
+ <section>
+ $body$
+ </section>
+</article>
diff --git a/site/templates/post.html b/site/templates/post.html
index 428ebff..7aa2775 100644
--- a/site/templates/post.html
+++ b/site/templates/post.html
@@ -1,9 +1,6 @@
<article>
<section class="header">
Posted on $date$
- $if(author)$
- by $author$
- $endif$
</section>
<section>
$body$