This commit is contained in:
Yessiest 2022-09-11 00:03:09 +04:00
parent 947f236b43
commit 7931c29b01
2 changed files with 3 additions and 4 deletions

View File

@ -16,8 +16,8 @@
# Ruby CGI module to produce a directory listing of filterable content # Ruby CGI module to produce a directory listing of filterable content
# Variables # Variables
ROOT_PATH="/var/www/" ROOT_PATH="/www/"
DIR_PATH="/var/www/blog" DIR_PATH="/www/blog"
EXTENSIONS=[".md"] EXTENSIONS=[".md"]
TEMPLATE_PRE="template.pre.html" TEMPLATE_PRE="template.pre.html"
TEMPLATE_POST="template.post.html" TEMPLATE_POST="template.post.html"
@ -31,7 +31,7 @@ template_css = ""
template_pre = "" template_pre = ""
template_post = "" template_post = ""
if File::exists?( ROOT_PATH+TEMPLATE_CSS ) then if File::exists?( ROOT_PATH+TEMPLATE_CSS ) then
template_css = cgi.link( rel = "stylesheet", href = TEMPLATE_CSS) template_css = "<link rel = \"stylesheet\", href = \"#{TEMPLATE_CSS}\">\n"
end end
if File::exists?( ROOT_PATH+TEMPLATE_PRE) then if File::exists?( ROOT_PATH+TEMPLATE_PRE) then
template_pre_f = File.new( ROOT_PATH+TEMPLATE_PRE, "r") template_pre_f = File.new( ROOT_PATH+TEMPLATE_PRE, "r")

View File

@ -19,7 +19,6 @@ body {
position: relative; position: relative;
width: 800px; width: 800px;
margin: 2em auto 0 auto; margin: 2em auto 0 auto;
height: 100%;
background-color: #c0c0c0; background-color: #c0c0c0;
box-shadow: 0 0 15px #000000; box-shadow: 0 0 15px #000000;
} }