From f1b9b4992cd2ed6627ae36b2bc163dc06f209432 Mon Sep 17 00:00:00 2001 From: Astoria Date: Sat, 22 Oct 2022 20:49:03 -0500 Subject: [PATCH] add date to pages --- public/css/default.css | 5 +++++ views/blogpage.erb | 13 +++++++++++++ 2 files changed, 18 insertions(+) diff --git a/public/css/default.css b/public/css/default.css index ff5d722..59d81e0 100755 --- a/public/css/default.css +++ b/public/css/default.css @@ -310,6 +310,11 @@ input[type="submit" i] { margin-top: 40px; } +.articledate { + float: left; + margin-top: 5px; +} + .seemorelink { float: right; margin-top: 40px; diff --git a/views/blogpage.erb b/views/blogpage.erb index 585224e..f8bc4f4 100644 --- a/views/blogpage.erb +++ b/views/blogpage.erb @@ -24,6 +24,19 @@ <% elsif File.exist?("." + request.path_info + ".md") %> <%= markdown(File.read("." + request.path_info + ".md")) %> <% end %> + <% if File.exist?("." + request.path_info + ".meta") %> +
+ <%= File.read("." + request.path_info + ".meta") %> +
+ <% elsif File.exist?("." + request.path_info + ".erb.meta") %> +
+ <%= File.read("." + request.path_info + ".erb.meta") %> +
+ <% elsif File.exist?("." + request.path_info + ".md.meta") %> +
+ <%= File.read("." + request.path_info + ".md.meta") %> +
+ <% end %> <%= erb :bottom %>