|
||
---|---|---|
output | ||
pages | ||
templates | ||
README.md | ||
gensite.sh |
README.md
gensite.sh
Super basic script for generating a website that I use religiously. And when I say super basic, I MEAN super basic. I am not a programmer by any means but It Werks(tm). As a result, this is mostly for personal use, but if you think this would help you, go right ahead and use and/or edit it to your heart's content.
What it does
The script generates a site in the output/
folder pages on the markdown files in pages/
and the files in templates/
.
How to use
Requirements: tidy
, discount
-
In the templates folder, set
tidy_config.txt
to whatever options you'd like to use. My basic settings are in there by default. -
Also in the templates folder, edit
header.html
andfooter.html
to what you want to appear on every page. -
Place whatever markdown files you want in the
pages/
folder. These will be converted into HTML files of the same name. Any other site content (ie. favicon, images, styles, etc), make sure it's in youroutput/
folder. -
Run
sh gensite.sh
from the root folder. This will output all content into the suitably namedoutput/
folder. -
Good luck have fun :)