Skip to content

Commit

Permalink
Use withPrefix instead of Link component
Browse files Browse the repository at this point in the history
Link component is only for files handled internally by Gatsby, but rss.xml is contructed programtically.
  • Loading branch information
sroertgen committed Nov 8, 2023
1 parent 433d990 commit 2305393
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Curricula Blog
# DINI-AG-KIM Blog

This project is the source for the new blog of the curricula group in DINI-AG-KIM.
This project is the source for the blog of the DINI-AG-KIM.
This project was created with the gatsby template [gatsby-starter-blog](https://github.com/gatsbyjs/gatsby-starter-blog).

## Adding a new blog post
Expand Down
4 changes: 2 additions & 2 deletions src/components/layout.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from "react"
import { useStaticQuery, graphql } from "gatsby"
import { Link } from "gatsby"
import { Link, withPrefix } from "gatsby"
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"
import { faGithub } from "@fortawesome/free-brands-svg-icons"

Expand Down Expand Up @@ -46,7 +46,7 @@ const Layout = ({ location, title, children }) => {
GitHub <FontAwesomeIcon icon={faGithub} style={{ color: `#000` }} />
</a>
{` | `}
<Link to="/rss.xml">Feed</Link>
<a href={withPrefix("/rss.xml")}>Feed</a>
</div>
)

Expand Down

0 comments on commit 2305393

Please sign in to comment.