Eternia Static Site Generator
npm -g i eternia
eternia create furkies-purrkies md
eternia build catpea.com
hs -o -c-1 ./dist/furkies-purrkies/wwwroot/
eternia build <task-name> #run it the directory containing your content database.
eternia create furkies-purrkies [md] # to create markdown record.
eternia create furkies-purrkies [html] # to create html record.
eternia create --name "The Philosopher" westland-warrior # to create a new yaml record.
Eternia works in three simple steps:
- Read the index.json of all the records in the database directory.
- Invoke a series of middleware plugins that transform the record into its cache directory.
- Write the results to a destination directory!
Because of aggressive caching it is recommended that you preserve time-stamps, use the -p
flag with scp and -H posix
with tar to store high resolution timestamps.
# tar using -H posix
tar -c -H posix -f furkies-purrkies.tar --exclude='*.mp4' furkies-purrkies
# scp using -p
scp -p -r bork:code/furkies-purrkies .