213 |
* Generate beginning of page |
* Generate beginning of page |
214 |
* |
* |
215 |
* i) title title of this page |
* i) title title of this page |
216 |
* i) subdir 1: this page is in subdirectory |
* i) place SUBDIR: this page is in sub directory |
217 |
|
* TOPDIR: this page is in the top directory |
218 |
*/ |
*/ |
219 |
const char * |
const char * |
220 |
gen_page_begin(title, subdir) |
gen_page_begin(title, place) |
221 |
const char *title; |
const char *title; |
222 |
int subdir; |
int place; |
223 |
{ |
{ |
224 |
STATIC_STRBUF(sb); |
STATIC_STRBUF(sb); |
225 |
const char *dir = subdir ? "../" : ""; |
const char *dir = (place == SUBDIR) ? "../" : ""; |
226 |
|
|
227 |
strbuf_clear(sb); |
strbuf_clear(sb); |
228 |
if (enable_xhtml) { |
if (enable_xhtml) { |