Fix permalinks and styles.