function generateCustomLink(location, linkNumber) {
// Define the logic to generate custom links here based on the location and link number.
// For example:
if (linkNumber === 1) {
return `https://example.com/link1/${location.title}`;
} else if (linkNumber === 2) {
return `https://example.com/link2/${location.title}`;
}
// Add more conditions for additional custom links as needed.
}