Add directory index functionality to site_dir