Update the generation of permalink.
Update .gitignore.