diff options
| author | Paul Buetow (mars.fritz.box) <paul@buetow.org> | 2013-12-22 12:53:06 +0100 |
|---|---|---|
| committer | Paul Buetow (mars.fritz.box) <paul@buetow.org> | 2013-12-22 12:53:06 +0100 |
| commit | 51537454ed2ba58027e77337088c09a50c4b859e (patch) | |
| tree | b411a98959993e4f05dc7beb20d23de0118648c9 | |
| parent | c42fc0a5994e71a477138b3af41199bc989b102b (diff) | |
create index.html from a template
| -rwxr-xr-x | photoalbum.sh | 1 | ||||
| -rw-r--r-- | templates/index.tmpl (renamed from index.html) | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/photoalbum.sh b/photoalbum.sh index 2766c9f..1658a48 100755 --- a/photoalbum.sh +++ b/photoalbum.sh @@ -112,4 +112,5 @@ function generate () { createdirs scale find ./html -type f -name \*.html -delete +cd html && template index index && cd .. generate 1 diff --git a/index.html b/templates/index.tmpl index 6a5d1a5..2ec99d7 100644 --- a/index.html +++ b/templates/index.tmpl @@ -1,6 +1,7 @@ +cat <<END <html> <head> -<title>Photoalbum!</title> +<title>$TITLE</title> <meta http-equiv="Content-type" content="text/html; charset=iso-8859-1"> <meta http-equiv="refresh" content="0; URL=./html/page-1.html"> </head> @@ -8,3 +9,4 @@ Redirecting to Page 1 </body> </html> +END |
