|
@ -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/" |
|
|
|
|
|
DIR_PATH="/var/www/blog" |
|
|
|
|
|
|
|
|
ROOT_PATH="/www/" |
|
|
|
|
|
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") |
|
|