I do both.
Sometimes I look for long tail keywords (< 200 local exact match searches in Google's Keyword Planner tool). I then write mildly optimized posts for that.
On other days I am like "that should be an interesting topic and I want to write about it". When I do this I don't even think about SEO.