From 7931c29b015a89a11dd825a7736e2d3643943eb5 Mon Sep 17 00:00:00 2001 From: Yessiest Date: Sun, 11 Sep 2022 00:03:09 +0400 Subject: [PATCH] fix --- listing.rb | 6 +++--- template.css | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/listing.rb b/listing.rb index 6485239..46df537 100644 --- a/listing.rb +++ b/listing.rb @@ -16,8 +16,8 @@ # Ruby CGI module to produce a directory listing of filterable content # Variables -ROOT_PATH="/var/www/" -DIR_PATH="/var/www/blog" +ROOT_PATH="/www/" +DIR_PATH="/www/blog" EXTENSIONS=[".md"] TEMPLATE_PRE="template.pre.html" TEMPLATE_POST="template.post.html" @@ -31,7 +31,7 @@ template_css = "" template_pre = "" template_post = "" if File::exists?( ROOT_PATH+TEMPLATE_CSS ) then - template_css = cgi.link( rel = "stylesheet", href = TEMPLATE_CSS) + template_css = "\n" end if File::exists?( ROOT_PATH+TEMPLATE_PRE) then template_pre_f = File.new( ROOT_PATH+TEMPLATE_PRE, "r") diff --git a/template.css b/template.css index f59a03e..0712675 100644 --- a/template.css +++ b/template.css @@ -19,7 +19,6 @@ body { position: relative; width: 800px; margin: 2em auto 0 auto; - height: 100%; background-color: #c0c0c0; box-shadow: 0 0 15px #000000; }