this page details the script that is used to update It's basically a cron-ed bash script that makes a "blog" from a folder of images and text. It is not perfect by any means, it is a blog by the simplest means. If you have questions feel free to email

first of all, the full script can be downloaded here

to set it up: you've got to have a webadd directory and a webdir directory. Webdir is the site, webadd is images and text to be added. We have these setup in the user's root directory. You may need to tweak.

we have webadd shared over syncthing so that all we have to do is drag a file from our local machine, it syncs and within an hour will be posted.

ok so, I'll walk through some important parts of the script:


these variables set how long, in # of lines, you want the index.html and log file to get before they are archived or deleted. By default everytime is run it stores most of its output into ~/cronlog.log which isn't precisely a cronlog. But that's what it's called

when index.html gets bigger than MAXINDEX, index.html is renamed $currentdate.html and linked to on archive.html. Then ~/template.conf is copied to create a new index.html. Template.conf is basically the header and footer minus all the content in the middle

so then the script iterates through any files in the webadd directory. Anything ending in .gif, .jpg, .png or .txt will be picked up. .txt files can contain html but you need to escape your own slashes. Which is to say if you put in / in a .txt add a \ before it.

also of note, image files are moved from webadd to webdir under a unique filename to avoid conflicts and .txt files are DELETED after being appended to the index.

the script looks for

inside index.html and adds the new content just below that line. I couldn't figure out adding below the line so it actually replaces
and then adds it back in....

if nothing has changed the site is not re-uploaded

if something has changed, the script runs surge to upload the site.

and that's it. This script was written by TRAV