diff options
author | EuAndreh <eu@euandre.org> | 2020-01-24 13:15:34 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2020-01-24 13:15:34 -0300 |
commit | 1a08821a024cd09b361937b32d0498f21583d7e5 (patch) | |
tree | 86b9f08144fcf4e763f2e816919c9421aff360bd /site | |
parent | utils.nix: Revert change (diff) | |
download | euandre.org-1a08821a024cd09b361937b32d0498f21583d7e5.tar.gz euandre.org-1a08821a024cd09b361937b32d0498f21583d7e5.tar.xz |
Add pastebins.html listing page
Diffstat (limited to '')
-rw-r--r-- | site/pastebins.html | 5 | ||||
-rw-r--r-- | site/templates/pastebin-list.html | 7 | ||||
-rw-r--r-- | site/templates/pastebin.html | 8 | ||||
-rw-r--r-- | site/templates/post.html | 3 |
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$ |