]> www.average.org Git - mkgallery.git/blobdiff - include/header.pl
attempt to support utf8 better
[mkgallery.git] / include / header.pl
index e1f9c965dd0b906706fe83e6386b29098f182dc7..e6cbdd07914ae09a837ff7b011e8014252f4275f 100644 (file)
@@ -1,2 +1,13 @@
+# this gets `eval`-ed and must return a string to be included in the
+# index html page at the top.
+
+# The following variables are documented:
+# $_{-version}         SVN release of the running script
+# $_{-depth}           subdir depth relative to the "top" with .gallery2
+# $_{-title}           title of the current subdir (.title contents)
+# $_{-path}            path from the dir that contains .gallery2
+
 "<h1 class=\"title\">$_{-title}</h1>".
-($_{-depth}?"<div class=\"linkup\"><a href=\"../index.html\">UP</a></div>":"")
+($_{-depth}?
+       "<div class=\"linkup\"><a href=\"../index.html\">UP</a></div>":
+       "<div class=\"linkup\"><a href=\"/\">HOME</a></div>")