bradpauly.com

Simplify

August 20, 2008

This blog started out, and still is, very simple. Even so I have decided to remove something. The Post model has an intro attribute, which was displayed on the index page along with the post title. I’m replacing it with the first paragraph of the post body.

Originally I thought the intro would serve two purposes. It would help me to write better by writing a good intro before writing the post. It would also serve as the blurb to go along with the title on the main page, which would be shorter than the post body. What I’ve realized, after a helpful suggestion, is that a good first paragraph will do the same thing.

The Code

A migration to remove the intro column is all that is needed for the database and a simple method on the Post model will grab the first paragraph.

Comments Add a Comment