Yessiest 2 years ago
parent
commit
7931c29b01
  1. 6
      listing.rb
  2. 1
      template.css

6
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 = "<link rel = \"stylesheet\", href = \"#{TEMPLATE_CSS}\">\n"
end
if File::exists?( ROOT_PATH+TEMPLATE_PRE) then
template_pre_f = File.new( ROOT_PATH+TEMPLATE_PRE, "r")

1
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;
}

Loading…
Cancel
Save