Skip to content

Commit

Permalink
fix(about): changed path regex
Browse files Browse the repository at this point in the history
This regex no longer pull an incorrect file such as "about_cooking.md," or "about_minecraft.md."
  • Loading branch information
AoSankaku authored and sungik-choi committed Dec 9, 2023
1 parent 83b83c4 commit 0742b18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/about.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { rhythm } from "~/src/styles/typography"
const About = () => {
const data = useStaticQuery<Queries.Query>(graphql`
query About {
allMarkdownRemark(filter: { fileAbsolutePath: { regex: "/about/" } }) {
allMarkdownRemark(filter: { fileAbsolutePath: { regex: "/.*\/about.md$/" } }) {
edges {
node {
html
Expand Down

0 comments on commit 0742b18

Please sign in to comment.