...
 
Commits (2)
# ChangeLog
## [Unreleased]
### Added
- new -H/--header option for HTML code to be inserted on top of each page
### Changed
- removed "Generated by" footer
## [0.5.1] 2018-07-10
### Changed
- HTML pages generated with charset utf-8
......
......@@ -34,6 +34,10 @@ SORT="sort"
# can be changed with --title option
TITLE="$(${BASENAME} "$(pwd)")"
# html which will be added on top of the page
# can be changed with --headerhtml option
HEADERHTML=""
# working directory
# all files will be put in a subdirectory of this name
# can be changed with --subdir option
......@@ -100,6 +104,7 @@ htmlheader()
htmlprint "</style>\\n" "${2}"
htmlprint "</head>\\n" "${2}"
htmlprint "<body>\\n" "${2}"
htmlprint "${HEADERHTML}\\n" "${2}"
}
# $1 file
......@@ -107,7 +112,6 @@ htmlfooter()
{
msg 0 "Writing HTML footer for ${1}."
htmlprint "<div class=\"footer\">\\n" "${1}"
htmlprint "Generated by <a href=\"http://su2.info/easygg/\">easyGG</a>.\\n" "${1}"
htmlprint "</div>\\n" "${1}"
htmlprint "</body>\\n" "${1}"
htmlprint "</html>\\n" "${1}"
......@@ -156,6 +160,7 @@ You can override some default options though.
(in pixel, default is 640)
no side (width/height) will be longer than this. but
image won't be enlarged if it is smaller.
-H, --header HTML code to be inserted on top of each page
-v, --verbose show more debugging info
-q, --quiet show only errors
-h, --help shows this information
......@@ -189,6 +194,10 @@ do
FULL_DIM="${2}"
shift
;;
--header|-H)
HEADERHTML="${2}"
shift
;;
--verbose|-v)
VERBOSELEVEL=0
;;
......