#
# Include this file in your main site description file and you get really easy
# construction of the header, meta-tags, and body construct. Simply define, on
# each page, one or more of the following (given as examples):
#
#	bgimage="pix/myfile.gif";		background tiled image
#	bgcolor="#ffffff";			page background color
#	textcolor="#000000";			color of text
#	linkcolor="#202020";			color of links
#	vlinkcolor="#404040";			color of visited links
#	body-other="test=foo";			other stuff that you may need
#
#	author="Jimi Hendrix";			meta author
#	description="This is a test page";	meta description
#	keywords="test hendrix amiga";		meta keywords
#	title="A cool test page";		window title bar
#
# The required 'copyright-notice' will also be included so you don't have to
# worry about it elsewhere in your pages. You can, of course, define as much
# or as little of this in the (global) SITE object if most of your pages are
# going to use the same images, colors, and author.
#
# Then define the 'value' of a page as something like
#
#			value = header my-page-stuff footer;
#
# and define 'my-page-stuff' for each page as well; you now have an instant
# HTML page with proper headers, meta tags for the search engines, etc.
#

text = header {
	value = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2//EN\">\n"
		"<html>\n"
		"\n"
		"<head>\n"
		header-elements
		"</head>\n"
		"\n"
		"<body" body-tags ">\n"
		copyright-notice
}

text = footer { value = "\n</body>\n</html>" }



###############################( BODY TAGS )##############################
text = body-bgimage     { ifdef = bgimage; value = " background=" bgimage }
text = body-bgcolor     { ifdef = bgcolor; value = " bgcolor=" bgcolor }
text = body-textcolor   { ifdef = textcolor; value = " text=" textcolor }
text = body-linkcolor   { ifdef = linkcolor; value = " link=" linkcolor }
text = body-vlinkcolor  { ifdef = vlinkcolor; value = " vlink=" vlinkcolor }
text = body-other-tags  { ifdef = body-other; value = " " body-other }

text = body-tags {
	value = body-bgcolor body-bgimage body-textcolor body-vlinkcolor body-other-tags;
}



###############################( HEADER TAGS )##############################
text = header-elements  { value = meta-content meta-generator meta-description meta-keywords meta-author page-title }

text = meta-content	{ value = "<meta http-equiv=Content-Type content=\"text/html; charset=iso-8859-1\">\n" }
text = meta-generator	{ value = "<meta name=GENERATOR content=\"WebLord 1.0\">\n" }
text = meta-description { ifdef = description; value = "<meta name=description content=\"" description "\">\n" }
text = meta-keywords    { ifdef = keywords;  value = "<meta name=keywords content=\"" keywords "\">\n" }
text = meta-author      { ifdef = author;  value = "<meta name=author content=\"" author "\">\n" }
text = page-title       { ifdef = title;  value = "<title>" title "</title>\n" }

### end of global.wl
