I’m finally getting around to tidying up the code I started ages ago with an aim to replacing WordPress with a super simple homebrew CMS for intepid. I’ve yet to update the database schema as I originally intended so for now it’s just an alternative front-end to the same database that WordPress uses.
The main feature changes will be inline comments, so there will be no need to go to permalink pages to view and add comments. The comment form itself is not spam safe yet so I’ve left it out for now, but you can see [expandable] inline comments by visiting the link below this link and clicking on the “Comments” label at the end of each post.
Other changes will be to use CSS2 more– something I could do with WordPress of course, but I honestly can’t be arsed putting any more work into the WP side of things. Currently the style is totally minimal, since I am focusing on the structure more than anything, but I note that attribute-based selectors seem to work pretty well for getting the alignment and padding of floating images correct; eg the following overrides the clumsy HSPACE attribute in IMG elements to force right-floating images all the way to the right (and even slightly outside the right text margin) while adding some nice padding to the inside so that text content doesn’t butt right up against the images.
img[align="right"] {
margin: 0 -6px 8px 8px;
max-width: 50%;
}