diff --git a/src/components/AdventuresVol/index.js b/src/components/AdventuresVol/index.js index 468ccd6c6b682f..3c8cbfeb6cfa66 100644 --- a/src/components/AdventuresVol/index.js +++ b/src/components/AdventuresVol/index.js @@ -1,27 +1,52 @@ import React from "react"; +import { Link } from "gatsby"; import { HiOutlineChevronRight } from "@react-icons/all-files/hi/HiOutlineChevronRight"; import { AdventuresVolWrapper } from "./adventures-vol.style"; const AdventuresVol = ({ title, description, to, image }) => { + const isExternalOrStatic = + to && + (to.startsWith("http://") || + to.startsWith("https://") || + to.split("?")[0].split("#")[0].toLowerCase().endsWith(".pdf") || + to.startsWith("mailto:")); + + const isMailTo = to && to.startsWith("mailto:"); + + const cardContent = ( +
{description}
+ {to && ( +