mirror of
https://github.com/Unkn0wnCat/KevinK.dev.js.git
synced 2025-04-28 17:56:51 +02:00
Normalize links
This commit is contained in:
parent
bd9054f02e
commit
78db8f07a2
9 changed files with 24 additions and 24 deletions
|
@ -90,19 +90,19 @@ const Navigation = ({ isHome }: NavigationProps) => {
|
|||
)}
|
||||
/>
|
||||
<div className="flexSpacer"></div>
|
||||
<Link to="/about" activeClassName={styles.active}>
|
||||
<Link to="/about/" activeClassName={styles.active}>
|
||||
<Trans>about.title</Trans>
|
||||
</Link>
|
||||
{modules.projects && (
|
||||
<Link to="/projects" activeClassName={styles.active}>
|
||||
<Link to="/projects/" activeClassName={styles.active}>
|
||||
<Trans>project.plural</Trans>
|
||||
</Link>
|
||||
)}
|
||||
<Link to="/social" activeClassName={styles.active}>
|
||||
<Link to="/social/" activeClassName={styles.active}>
|
||||
<Trans>social.title</Trans>
|
||||
</Link>
|
||||
{modules.blog && (
|
||||
<Link to="/blog" activeClassName={styles.active}>
|
||||
<Link to="/blog/" activeClassName={styles.active}>
|
||||
<Trans>blog.title</Trans>
|
||||
</Link>
|
||||
)}
|
||||
|
|
|
@ -38,19 +38,19 @@ const OffScreenNav = ({ active, close }: OffScreenNavProps) => {
|
|||
<Link to="/" activeClassName={styles.active}>
|
||||
<Trans>home.title</Trans>
|
||||
</Link>
|
||||
<Link to="/about" activeClassName={styles.active}>
|
||||
<Link to="/about/" activeClassName={styles.active}>
|
||||
<Trans>about.title</Trans>
|
||||
</Link>
|
||||
{modules.projects && (
|
||||
<Link to="/projects" activeClassName={styles.active}>
|
||||
<Link to="/projects/" activeClassName={styles.active}>
|
||||
<Trans>project.plural</Trans>
|
||||
</Link>
|
||||
)}
|
||||
<Link to="/social" activeClassName={styles.active}>
|
||||
<Link to="/social/" activeClassName={styles.active}>
|
||||
<Trans>social.title</Trans>
|
||||
</Link>
|
||||
{modules.blog && (
|
||||
<Link to="/blog" activeClassName={styles.active}>
|
||||
<Link to="/blog/" activeClassName={styles.active}>
|
||||
<Trans>blog.title</Trans>
|
||||
</Link>
|
||||
)}
|
||||
|
|
|
@ -33,15 +33,15 @@ const Layout = ({description, meta, title, image, speakable, seoAdditional, tran
|
|||
</div>
|
||||
<footer role="contentinfo">
|
||||
CC-BY 4.0 Kevin Kandlbinder,{" "}
|
||||
<Link to="/legal/about" className="spf-link">
|
||||
<Link to="/legal/about/" className="spf-link">
|
||||
<Trans i18nKey="layout.imprint">Imprint</Trans>
|
||||
</Link>{" "}
|
||||
|{" "}
|
||||
<Link to="/legal/datasec" className="spf-link">
|
||||
<Link to="/legal/datasec/" className="spf-link">
|
||||
<Trans i18nKey="layout.datasec">Data Protection</Trans>
|
||||
</Link>{" "}
|
||||
|{" "}
|
||||
<Link to="/legal/disclaimer" className="spf-link">
|
||||
<Link to="/legal/disclaimer/" className="spf-link">
|
||||
<Trans i18nKey="layout.disclaimer">Disclaimer</Trans>
|
||||
</Link>{" "}
|
||||
| <a href="#languageChooser">Language</a>
|
||||
|
|
|
@ -167,7 +167,7 @@ const AboutPage = (props) => {
|
|||
<Link
|
||||
className={projectStyles.projectCard}
|
||||
key={project.lang + "/" + project.urlname}
|
||||
to={"/projects/" + project.urlname}
|
||||
to={"/projects/" + project.urlname + "/"}
|
||||
>
|
||||
<div
|
||||
className={
|
||||
|
@ -211,7 +211,7 @@ const AboutPage = (props) => {
|
|||
);
|
||||
})}
|
||||
</div>
|
||||
<Link to="/projects" className={styles.seeMoreButton}>
|
||||
<Link to="/projects/" className={styles.seeMoreButton}>
|
||||
<Trans>about.moreProjects</Trans> <ArrowRight />
|
||||
</Link>
|
||||
</article>
|
||||
|
@ -295,7 +295,7 @@ const AboutPage = (props) => {
|
|||
</div>
|
||||
</section>
|
||||
{modules.donation && (
|
||||
<Link className={styles.donationSection} to="/donate">
|
||||
<Link className={styles.donationSection} to="/donate/">
|
||||
<div>
|
||||
<span>
|
||||
<Trans>about.donationCatchphrase</Trans>
|
||||
|
|
|
@ -192,7 +192,7 @@ const IndexPage = (props) => {
|
|||
</div>
|
||||
<div className={styles.spacer}></div>
|
||||
<div className={styles.landingCta}>
|
||||
<Link to={"/projects"}>
|
||||
<Link to={"/projects/"}>
|
||||
<div>
|
||||
<span className={styles.ctaAccent}>
|
||||
{t("home.explore")}
|
||||
|
@ -201,7 +201,7 @@ const IndexPage = (props) => {
|
|||
</div>
|
||||
<ArrowRight />
|
||||
</Link>
|
||||
<Link to={"/social"}>
|
||||
<Link to={"/social/"}>
|
||||
<div>
|
||||
<span className={styles.ctaAccent}>
|
||||
{t("home.discover")}
|
||||
|
@ -210,7 +210,7 @@ const IndexPage = (props) => {
|
|||
</div>
|
||||
<ArrowRight />
|
||||
</Link>
|
||||
<Link to={"/about"}>
|
||||
<Link to={"/about/"}>
|
||||
<div>
|
||||
<span className={styles.ctaAccent}>
|
||||
{t("home.learn")}
|
||||
|
|
|
@ -90,7 +90,7 @@ const ProjectsPage = ({ data }) => {
|
|||
<Link
|
||||
className={styles.projectCard}
|
||||
key={project.lang + project.urlname}
|
||||
to={"/projects/" + project.urlname}
|
||||
to={"/projects/" + project.urlname + "/"}
|
||||
>
|
||||
<div className={styles.projectCardImage}>
|
||||
<div className={styles.projectCardBg}>
|
||||
|
|
|
@ -45,7 +45,7 @@ const SocialPage = ({ data }) => {
|
|||
|
||||
<p>
|
||||
<Trans i18nKey="social.descriptionWithLink">
|
||||
socialDescriptionWith<Link to="/friends">Link</Link>
|
||||
socialDescriptionWith<Link to="/friends/">Link</Link>
|
||||
</Trans>
|
||||
</p>
|
||||
|
||||
|
|
|
@ -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`
|
||||
|
|
|
@ -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`
|
||||
|
|
Loading…
Add table
Reference in a new issue