Added a slug for permalinks (with fallback to title or filename)