html5 and nostuff

It’s hard not to think of nostuff.org and not think of blazing web standards.

So I had a go at updating the template for this here blog to make it all html5. Turns out this is quite simple.

It seems you can probably just replace your doctype with

<!DOCTYPE html>

and you’ve got yourself a html5 webpage.

The W3C validator proves it so. From there I added some of the new section elements such as header, footer, nav, aside and article. It seems that these can apply to the page (i.e. the page’s footer) or a section (the footer of a blog post, where it shows tags and date published  etc). I used various sources on the web, via Google, including a few articles, and sample sites.

So nostuff mostly validates as html5 and makes use of some of the elements above, though this doesn’t affect anything visually at the moment (I think, I really don’t have much of a clue as to what I’m doing).

I’ve created a gzip file of the theme here. You’re welcome to download and use it, though it’s not really designed to be shared (includes my analytics/adsense codes etc).

ecto : first impressions

I’ve heard good things about PC/Mac clients for writing blog posts, so thought I would give it a go. I tried out ecto for OS X, to published to my WordPress based blog.

It did what was promised it acted as a WYSIWYG blog composition tool, and in that sense it was easy to use and worked without problems. However I few things:

  • I could only attach (as far as I could see) audio, pictures and movies. I wanted to attached a txt file, (and may want to upload PDF/doc files) but could see no way of doing this.
  • I couldn’t send it to the blog as an unpublished draft, so I couldn’t send it to WordPress and then upload/link-to the text file using the wordpress interface before publishing.
  • Ecto is a generic blog tool, not specific to WordPress. While in many ways a good thing, it does have it’s downside, there are some options on the WordPress composition screen that I rarely use but do find them useful occasionally, and felt it somewhat unsettling for them not to be there should I need them.
  • As a plus: the problem with the WordPress interface is that there is a lot of screen space used with the top of the screen menus and other misc stuff, and the edit space is somewhat small, and it is annoying to need to scroll both the screen and the text box. the ecto UI does not have this issue. But then WordPress 2.7 may address this problem.
  • One of the main plus points is being able to carry on editing offline, but with Google Gears you should be able to edit happily offline (I haven’t tried this yet).

So ecto is certainly worthy trying if you are after a OS X based blog client, and I chose it above others available based on reviews I had read, but for me, I think I will stick with the native web interface for the time being.

(posted using Ecto)

WordPress themes and plugins

Of interest to those who use WordPress (and those who have an opinion on web design).

Had a few hours off this afternoon so have been playing around with WordPress a bit.

New plugins:

  • Google sitemap XML : does what it says, and easy to use
  • Theme Test Drive : allows you to preview other themes (on your site) without having to make the switch first. Good plugin, seems to work well, config settings are under the theme menu of WP.
  • Twitter for WordPress‘ : you guessed it, shows one (or more) twitter feeds either as a widget or by calling a function. Works well as a widget (and all config is carried out in the widget area).
  • OpenID for WordPress : allows those leaving comments, and myself as blog author to sign in via OpenID. While it’s been noted that OpenID does have usability issues, it still seems like a good option to have. I’m leaving this active, it does work, though can’t see it being used. You don’t it near the ‘comment’ box on a post, though it is there on the signin page (which people probably would never go to), once signed in to openid (which, if you are like me, requires trying to remember what your URL is) you are actually taken to the WP admin dashboard (which scared me to start with, anyone can do this on my blog!), but the dashboard itself doesn’t reveal anything important and all other areas are locked down. In theory the user could then set up a profile, though comeone this is nostuff, why would you want a profile here? So kudos for a good plugin, though can’t see it being used on this backwater of a blog.
  • links to the above can be found here.

Themes

The first browser I used was Netscape 1, possibly 2. By default it would display black text on a grey background. This was good, far easier to read than black on white.

Since then I’ve always had a thing against plain white backgrounds, and have avoided using them for my personal sites: from the mid/late 90s (but then didn’t we all have coloured backgrounds back then!), to static web pages today, and also this very blog.

The theme is Greening, I like it as the shades of green is quite unusual, and yet – for me – quite nice to read.

However, the font is quite small [update: I’ve increased the default font size in the theme] and I couldn’t help thinking that other themes seem to be easier to read.

I mentioned above that one of the plugins allows you to try out themes without full swapping to a new one. This allows me to do cool things like show you this blog post in three different themes, try these links:

The latter two are those I’ve come across that I like the look of. The test is I can read a large post without it being a strain. By coincidence they are both by Chris Pearson.

As you can see above, some of the new plugins I’ve installed work best as widgets. Widgets are blocks in the left/right menu (categories, pages, links, etc) you can add, and order as you wish, independent of theme. This ability to easily configure and customise you’re blog’s sidebar is a powerful feature. So I was keen to move to a theme which supports widgets, there are surprisingly few. To my shame, it was only by accident that it was just now I realised that Greening has supported widgets all along.

For the time being, I’ve increased the font size on my current theme, I think it looks better. Meanwhile I’m pondering moving to one of the themes above. Ironically for all my raving about widgets above, the one which looks better to me is Pressrow, the only one of the three that does not support widgets.

Would be interested in any one’s preferences regarding the three themes above?

Update Oct 2008: Have also added the ‘Subscribe to Comments‘ extension, allows those who comment to tick a box and have any further comments emailed to them.

WordPress tags etc

For a while I have been adding tags to my posts. Tags are good. People who tag things are good. I am Web 2.0.

Only thing is they seemed to be going in to the ether, that is to say, users (that is you) had no way to see them or browse them. I was suprised that there aren’t any real options in the WordPress admin website, and considering they were only introduced in version 2.3 I was suprised I didn’t find more information on the web as to how to make use of them. I had read that WP supports things like tag clounds out of the box, but couldn’t see how to make one for my blog.

I suspected part of the problem was that existing themes hadn’t been updated to make use of them (but it seemed the ‘Default’ theme lacked support for them as well, at least the version on Dreamhost seem to).

Anyways, I found a few things:

  • You can create special pages like Archives and Sitemap. I actually found this as a theme I was playing with (Copyblogger) had a link at the top of the page called Archives but it didn’t work. This page on Andy Sylvester’s blog explains how to fix this. You basically create a page (not a post) called ‘archives’ or ‘sitemap’ etc, and under ‘Page Template’ (near bottom of the composistion page) you can select templates such as ‘archives’ or ‘sitepmap’, these seem to be dependent on your theme. Finally save it blank. He mentions to set the ‘slug’, but I can’t couldn’t see an obvious way to do this with the new composistion interface in WP [update: while writing this very post i have just noticed you just have to click on the ‘Permalink’ underneath the Title].
  • I also found this page on Rich Gilchrest website (at the time of writing it wasn’t working and had to use the Google cache copy), which explains how to add code to existing templates. So I’ve added some code to index.php and archives.php for this theme (Greening) – which doesn’t have a ‘sitemap’ template, which others seem to.

This is the code I added to archives.php using the theme editor within the admin interface for WP. Note I added a line-height as the larger tags seemed to overlap tags on the lines above, though even with this, there seems to be problems clicking small tags that are directly above larger tags.

<h2>Tags</h2>
<div style="line-height:210%;">
<?php wp_tag_cloud('smallest=8&largest=36&'); ?>
</div>

And the code I added to index.php

<?php the_tags("Tags: "); ?><br />

So now I have a tag cloud and archives page here. And you should be able to see (and click on… you know you want to) tags at the bottom of this post.

Of course, as is the law, on finsishing this I find two pages on the wordpress site that for reasons unknown I was incapable of finding before.