basic p level permalink implementation