What's new
About new features of SiteGenerator Version2
Added 2 tags to site.dtd.
- navigator
- robots
SiteGenerator version 1 writes same contents of title tag of all generated pages. The contents are content of "/site/base/title" in site.xml. SieteGenerator version 2 writes different content as content of title tag.
- In TOP page
- Content of element "/site/contents/top/name" in site.xml.
- In index page of diary
- Content of element "/site/contents/diary/name" in site.xml.
- In monthly page of diary
- YYYY/MM
- In category index page of feature
- Content of element "/site/contents/feature/category/name" in site.xml.
- In article page of feature
- Content of element "/feature/info/title" in article XML document.
SiteGenerator Version 1 generates always some pages. SiteGenerator Version 2 generates always only site.rss and TOP page. It generates other pages under some rules as follows...
- Category index page
- Generate if there are some generated pages in the category.
- Index page of diary
- Generate if there are some generated pages in the diary.
- Article page(categorized page in a feature)
- Generate if the XML document for the article is newer than the corresponding generated page.
SiteGenerator Version 2 writes meta tag to generated pages.
<meta name="robots" content="index,follow,archive">You need to write as follows to "siteGenerator_header.template" to specify where to write the meta tag.
<<SiteGenerator::robotsData>>SiteGenerator rewirtes this part to meta tag. Perhaps, there are HEAD tag in your "siteGenerator_header.template", so write it in the HEAD tag. By describing "robots" tags in the site.xml, you can specify noindex, nofollow and noarchive.
- Describe /site/base/robots
- Recognized site range rule. This specification will be applied all generated pages in the site. Don't describe it equals describe as follows...
<robots noIndex="no" noFollow="no" noArchive="no">
And then, SiteGenerator writes as follows...<meta name="robots" content="index,follow,archive">
- Describe /site/contents/*/robots
- Recognized correspoinding *(top, feature, diary or siteImport) range rule. The rule has priority over site range rule. And if you don't describe it, then SiteGenerator follows site range rule.
<site> <base> ... <robots noIndex="yes" /> </base> <contents> ... <diary id="d1" dir="d1"> <name>...</name> <robots noIndex="yes" noFollow="yes" noArchive="yes"/> <feature id="f1" diar="f1"> <name>...</name> <robots noFollow="yes"/> ... <feature id="f2" diar="f2"> <name>...</name> <robots noIndex="no"/> ...Then, all pages under diary "d1" has
<meta name="robots" content="noindex,nofollow,noarchive">as header. And all pages under feature "f1"(they are category index pages and article pages) has
<meta name="robots" content="noindex,nofollow,archive">as header. And all pages under feature "f2"(they are category index pages and article pages) has
<meta name="robots" content="index,follow,archive">as header. And other pages has
<meta name="robots" content="noindex,follow,archive">as header.
SiteGenerator Version 1 writes navigator part after main part of generated pages. SiteGenerator Version 2 writes it before or after main part of generated pages. You can specify before or after by Describing /site/base/navigator to the site.xml . Don't describe equals as follows...
<navigator position="beforeMain" />
SiteGenerator Version 2 writes inner page index to category index pages as subcategory index.

