Fix layout issues

- Fix sidebar content layout
- Load post layouts in correct order
- Add extra sidebar check