Link to correct slug url in directory if slug exists.

Also ignoring public/uploads in gitignore.