Firstly, install the IPFS daemon with:
Have your folder laid out in the traditional manner, with
index.html in the root of the folder.
Now to add it to IPFS;
cd ~/your/site/directory/ ls mysite/ ipfs add -r add mysite/ => added ##key ##key = last line of root of site e.g https://gateway.ipfs.io/ipfs/<your ##hash here>
publish to IPNS when updating site via ftp, ##hash will change, this requires a way to always share the latest hash key, this is what IPNS is for. it allows you to store a reference to the IPFS ##has under the namespace of your peerID (hash of IPFS)
ipfs name publish <your site ##hash> => peerID ipfs name resolve <peerId>
peerID can also be confirmed by going to