diff --git a/template.awk b/template.awk index 31d0779..5422435 100755 --- a/template.awk +++ b/template.awk @@ -14,6 +14,10 @@ BEGIN { /^$/ { if (varname) print ";"; + if ($3 == "NONE") { + varname = 0; + next; + } varname = $3; print "static const u_char " varname "[] = \"\""; next; diff --git a/template.h b/template.h index a4c8014..9fcc31f 100644 --- a/template.h +++ b/template.h @@ -4,19 +4,34 @@ static const u_char t01_head1[] = "" "\"http://www.w3.or/TR/xhtml1/DTD/xhtml1-strict.dtd\">" "" "" +"" "" -"" "Index of " ; static const u_char t02_head2[] = "" @@ -25,16 +40,16 @@ static const u_char t02_head2[] = "" ; static const u_char t03_body1[] = "" "<body>" -"<h1>" +"<h1>Index of " ; static const u_char t04_body2[] = "" "</h1>" ; static const u_char t05_list1[] = "" -"<table>" +"<table id=\"list\" cellpaddin=\"0.1em\" cellspacin=\"0\">" "<colroup>" "<col width=\"55%\"/>" -"<col width=\"20%\" style=\"text-alin: riht\"/>" +"<col width=\"20%\"/>" "<col width=\"25%\"/>" "</colroup>" "<thead>" @@ -45,8 +60,10 @@ static const u_char t05_list1[] = "" "</tr>" "</thead>" "<tbody>" -"<tr>" -"<td colspan=\"3\"><a href=\"../\">Parent Directory</a></td>" +"<tr class=\"e\">" +"<td><a href=\"../\">Parent Directory</a></td>" +"<td>-</td>" +"<td>-</td>" "</tr>" ; static const u_char t06_list2[] = "" diff --git a/template.html b/template.html index 1d3a76a..5d923b6 100644 --- a/template.html +++ b/template.html @@ -3,33 +3,52 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> + <meta http-equiv="content-type" content="text/html; charset=utf-8"/> <style type="text/css"> - body, html { - background: #fff; + body,html { + background:#fff; } tr.o { - background: #eee; + background:#f4f4f4; + } + th,td { + padding:0.1em 0.5em; } th { - font-weight: bold; - background: #ddd; + text-align:left; + font-weight:bold; + background:#eee; + border-bottom:1px solid #aaa; + } + #list { + border:1px solid #aaa; + width:100%; + } + a { + color:#a33; + } + a:hover { + color:#e33; } </style> - <meta http-equiv="content-type" content="text/html; charset=utf-8"/> <title>Index of +<!-- var NONE --> + /path/to/somewhere <!-- var t02_head2 --> -

+

Index of + + /path/to/somewhere

- +
- + @@ -40,8 +59,26 @@ - - + + + + + + + + + + + + + + + + + + + +
Parent Directory
Parent Directory--
test file 1123kBdate
test file 2321MBdate
test file 3666date