Close IfModule statement
Add trailing slash to permalinks
Re-organise layouts to circumvent Jekyll incorrectly returning the value of page.layout
Conditions around which metadata is shown for different page types