Custom page title tag
If the [site directory]/templates files are executable, they will be run when Pagegen generates the site and their output used.
A good use of this is to setup a header that can set the HTML title tag for each page, which is good for search engines. Do this by setting the [site directory]/templates/header to the following.
#!/bin/bash
echo "<html>"
echo "<head>"
echo "<title>${title}</title>"
echo "<meta name="description" content="${page_description}"/>"
echo "</head>"
echo "<body>"
Make the header template executable chmod +x [site dir]/templates/header. When the site is generated the page title tag will contain the title of the page. This works because Pagegen populates the $page_title and makes it available for the header template.
Last changed
2009-10-17 21:09



