Normalize links

This commit is contained in:
Kevin Kandlbinder 2022-02-04 13:43:24 +00:00 committed by GitHub
parent bd9054f02e
commit 78db8f07a2
9 changed files with 24 additions and 24 deletions

View file

@ -24,7 +24,7 @@ const BlogListing = ({ data, pageContext }) => {
<section>
<article>
{hasSection && (
<Link to={"/blog"} className={styles.sectionBacklink}>
<Link to={"/blog/"} className={styles.sectionBacklink}>
{t("blog.title")} /
</Link>
)}
@ -39,7 +39,7 @@ const BlogListing = ({ data, pageContext }) => {
<div className={styles.sectionList}>
<Link
className={styles.sectionCard}
to={"/blog/scambox"}
to={"/blog/scambox/"}
>
<div className={styles.sectionImage}>
<div className={styles.sectionBg}>
@ -69,7 +69,7 @@ const BlogListing = ({ data, pageContext }) => {
: ""
}${
post.childMdx.frontmatter.urlPublished
}/${post.childMdx.frontmatter.url}`}
}/${post.childMdx.frontmatter.url}/`}
key={post.childMdx.slug}
className={styles.post}
>
@ -89,7 +89,7 @@ const BlogListing = ({ data, pageContext }) => {
<>
{" | "}
<Link
to={`/blog/${post.childMdx.frontmatter.section}`}
to={`/blog/${post.childMdx.frontmatter.section}/`}
>
{t(
`blog.section.${post.childMdx.frontmatter.section}.name`

View file

@ -71,7 +71,7 @@ const BlogPost = ({ data }) => {
<>
{" | "}
<Link
to={`/blog/${data.mdx.frontmatter.section}`}
to={`/blog/${data.mdx.frontmatter.section}/`}
>
{t(
`blog.section.${data.mdx.frontmatter.section}.name`