CustomHTMLExport is a plug-in for iPhoto 5 that allows you to export much better HTML Web pages. It is a free and opensource utility. It should be pretty self explanatory, and making your own templates is a simple affair, if you look at the included documentation and the provided templates.
What's new in CustomHTMLExport
Now there is a display for errors that happen during export