Rename archive components

This commit is contained in:
Mark
2021-10-24 17:22:23 +01:00
parent 89fa0fd4a9
commit f252e81de2
9 changed files with 25 additions and 25 deletions
@@ -7,7 +7,7 @@ import { humanize } from "../utils"
import { PageContent } from "../components/PageContent"
// @todo maybe find alternative type for data
const Archive: FC<any> = ({ data }) => {
const Spotlight: FC<any> = ({ data }) => {
const { relativePath } = data.file
const { body, excerpt, fields, timeToRead, frontmatter } = data.file.post
@@ -30,10 +30,10 @@ const Archive: FC<any> = ({ data }) => {
)
}
export default Archive
export default Spotlight
export const query = graphql`
query Archive($file: String!) {
query Spotlight($file: String!) {
file(relativePath: { eq: $file }) {
relativePath
post: childMdx {