diff --git a/html/index.erb b/html/index.erb index f127422f..54053203 100644 --- a/html/index.erb +++ b/html/index.erb @@ -37,7 +37,8 @@ data.map! do |row| [row[0], row[1][0], row[3..-2].join(" ")] - end + end + data.sort! colwidth = [0,0,0] diff --git a/html/style.css b/html/style.css index cb406ad7..23bca920 100644 --- a/html/style.css +++ b/html/style.css @@ -1,19 +1,24 @@ - -table { - border-spacing: 0px; +#content { + width: 800px; + margin-left: auto; + margin-right: auto; } -/* td:first-child, th:first-child { */ -/* padding-left: 5px; */ -/* padding-right: 5px; */ -/* } */ +table { + width: 800px; + border-spacing: 0px; + border-top: 1px solid #ccc; + /* border-bottom: 1px solid #ccc; */ +} td, th { - padding: 3px 7px 3px 7px; + padding: 2px 7px 2px 7px; } tr.header { background-color: #fad; + text-align: left; + font-size: 110%; } tr.odd { diff --git a/html/template.html b/html/template.html new file mode 100644 index 00000000..1ff5ad50 --- /dev/null +++ b/html/template.html @@ -0,0 +1,88 @@ +$if(html5)$ + + +$else$ + + +$endif$ + +$if(html5)$ + +$else$ + +$endif$ + +$for(author)$ + +$endfor$ +$if(date)$ + +$endif$ + $if(title-prefix)$$title-prefix$ - $endif$$if(pagetitle)$$pagetitle$$endif$ +$if(html5)$ + +$endif$ +$if(highlighting-css)$ + +$endif$ +$for(css)$ + +$endfor$ +$if(math)$ +$if(html5)$ +$else$ + $math$ +$endif$ +$endif$ +$for(header-includes)$ + $header-includes$ +$endfor$ + + +
+$for(include-before)$ +$include-before$ +$endfor$ +$if(title)$ +$if(html5)$ +
+$else$ +
+$endif$ +

$title$

+$for(author)$ +

$author$

+$endfor$ +$if(date)$ +

$date$

+$endif$ +$if(html5)$ +
+$else$ +
+$endif$ +$endif$ +$if(toc)$ +$if(html5)$ + +$else$ +
+$toc$ +
+$endif$ +$endif$ +$body$ +$for(include-after)$ +$include-after$ +$endfor$ + + + diff --git a/melpa b/melpa index e3c4c71c..d32b480c 100755 --- a/melpa +++ b/melpa @@ -28,7 +28,7 @@ function melpa_generate_html { echo "*** Building html" cd html || return 1 erb index.erb > index.md - pandoc --css=style.css -s --mathml -t html --smart index.md > index.html + pandoc --template=template.html --css=style.css -s --mathml -t html --smart index.md > index.html cd .. echo }