Refactor main.jsx
Use url instead of permalink for link