add permalink function
it does recurse walk subdirectory now. #1
examples on subdir. it works on subdir #1
fix on ignore