fix up pages - permalinks, demo code