added permalink to loop.php