Fixed sidebar not closing article tag.

Moving the closing `<article>` tags outside of the `dynamic_sidebar` `if` statement to keep it from eating the `footer`.