mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-12 07:45:50 +00:00
Merge pull request #2442 from XRPLF/blog-fix
fix: adds /blog/ to beginning of href url
This commit is contained in:
@@ -31,7 +31,6 @@ export default function Index() {
|
|||||||
|
|
||||||
const heroPost = blogPosts[0];
|
const heroPost = blogPosts[0];
|
||||||
const otherPosts = blogPosts.slice(1);
|
const otherPosts = blogPosts.slice(1);
|
||||||
|
|
||||||
const defaultSelectedCategories = new Set(Object.keys(categories));
|
const defaultSelectedCategories = new Set(Object.keys(categories));
|
||||||
|
|
||||||
const [selectedCategories, setSelectedCategories] = useState(
|
const [selectedCategories, setSelectedCategories] = useState(
|
||||||
@@ -110,7 +109,7 @@ export default function Index() {
|
|||||||
<div className="d-lg-block">
|
<div className="d-lg-block">
|
||||||
<a
|
<a
|
||||||
className="btn btn-primary btn-arrow"
|
className="btn btn-primary btn-arrow"
|
||||||
href={`${heroPost.link}`}
|
href={`/blog/${heroPost.link}`}
|
||||||
>
|
>
|
||||||
{translate("Read More")}
|
{translate("Read More")}
|
||||||
</a>
|
</a>
|
||||||
@@ -224,7 +223,7 @@ export default function Index() {
|
|||||||
<div className="d-lg-block">
|
<div className="d-lg-block">
|
||||||
<a
|
<a
|
||||||
className="btn btn-primary btn-arrow"
|
className="btn btn-primary btn-arrow"
|
||||||
href={`${card.link}`}
|
href={`/blog/${card.link}`}
|
||||||
>
|
>
|
||||||
{translate("Read More")}
|
{translate("Read More")}
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
Reference in New Issue
Block a user