From 3f5b6862a34bdf54206044d28f439be38b4d18d4 Mon Sep 17 00:00:00 2001 From: swag Date: Sun, 14 May 2023 22:43:13 -0400 Subject: [PATCH] Moar CSS and HTML stuff --- README.md | 4 ++-- assets/css/PostText.css | 2 +- templates/thread/by_id.html.ep | 9 ++++++--- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index b7b030a..cf6bf7a 100644 --- a/README.md +++ b/README.md @@ -19,8 +19,8 @@ should be YAML or XML or something better suited. Run it in development mode: - morbo -w assets/css/ -w lib/ -w migrations/ -w t/ -w templates/ \ - script/post_text + morbo -w assets/css/ -w public/ -w lib/ -w templates/ \ + -w script/ script/post_text Now try requesting http://localhost:3000 diff --git a/assets/css/PostText.css b/assets/css/PostText.css index da260d7..faf047f 100644 --- a/assets/css/PostText.css +++ b/assets/css/PostText.css @@ -80,7 +80,7 @@ header > nav a { padding: 0.25em 0.5em; } -.remark .date, .remark .author, .remark .body { +.remark .author, .remark .body { margin: 1em 0.5em; padding: 0.25em 0.5em; } diff --git a/templates/thread/by_id.html.ep b/templates/thread/by_id.html.ep index 815e7bc..69d6d63 100644 --- a/templates/thread/by_id.html.ep +++ b/templates/thread/by_id.html.ep @@ -3,7 +3,10 @@

<%= title %>

-

<%= $thread->{'title'} %>

+

+ <%= $thread->{'title'} %> + #<%= $thread->{'id'} %> +

<%= $thread->{'date'} %>

<%= $thread->{'author'} %>
@@ -47,10 +50,10 @@
<% } =%> + <% if ($last_page && $last_page != 1) { =%> + <% } =%> <% } =%>