Fixes static pages when permalinks are active.

fixes #2938
- Fix `page === 1` occurences
- Fix ember logic
Merge pull request #2946 from halfdan/fix-page

Fixes static pages when permalinks are active.