Merge pull request #2442 from XRPLF/blog-fix

fix: adds /blog/ to beginning of href url
This commit is contained in:
Amarantha Kulkarni
2024-03-08 11:54:57 -08:00
committed by GitHub

View File

@@ -31,7 +31,6 @@ export default function Index() {
const heroPost = blogPosts[0];
const otherPosts = blogPosts.slice(1);
const defaultSelectedCategories = new Set(Object.keys(categories));
const [selectedCategories, setSelectedCategories] = useState(
@@ -110,7 +109,7 @@ export default function Index() {
<div className="d-lg-block">
<a
className="btn btn-primary btn-arrow"
href={`${heroPost.link}`}
href={`/blog/${heroPost.link}`}
>
{translate("Read More")}
</a>
@@ -224,7 +223,7 @@ export default function Index() {
<div className="d-lg-block">
<a
className="btn btn-primary btn-arrow"
href={`${card.link}`}
href={`/blog/${card.link}`}
>
{translate("Read More")}
</a>