Quick start
This page shows how to install Pagegen and start managing content, for in depth documentation please see the user manual http://pagegen.phnd.net/user-manual.
Step 1. Setup
Step 2. Write some content
- Run pagegen new my_site to setup the required directories and files for the site
- Add some text to the [pagegen directory]/mysite/content/default: echo "This is the front page:)" > default
- Create a new directory called My new page in the [pagegen directory]/my_site/content directory mkdir "My new page"
- Create a new file in the My new page directory, called default. Fill it with some text: echo "This here is my page" > "My new page/default". Every time a directory is added a default file must be created as well.
- Create another file in the My new page directory called Another page, again adding some text to it: echo "Starting to get this?" > "My new page/Another page"
Step 3. Customize site layout
Pagegen adds layout and navigation elements to each page when they are processed. To change the site look and feel, play with the following files:
- [site directory]/include/css/pagegen.css
- [site directory]/templates/header
- [site directory]/templates/footer
Step 4. Generate site
Run pagegen gen my_site to generate the site, see [Pagegen directory]/my_site/site/live for the freshly generated HTML files. To take the site live, simply copy the live directory to your web server. Enjoy!
Last changed
2009-10-18 14:41



