Who are you ?
nc
@@ -31,6 +30,15 @@ const AboutPage = () => (
)
+export const Head = () => {
+ return (
+
+ )
+}
+
const Image = () => {
const data = useStaticQuery(graphql`
query {
diff --git a/src/pages/index.tsx b/src/pages/index.tsx
index 0688c89..274f94d 100644
--- a/src/pages/index.tsx
+++ b/src/pages/index.tsx
@@ -2,11 +2,31 @@ import React, { useEffect } from "react"
import { graphql } from "gatsby"
import Base from '../components/Base'
-import SEO from "../components/seo"
+import SEO from "../components/Seo"
import PostList from "../components/PostList"
import init, { greet } from "snake_game"
-const IndexPage = (props) => {
+type articleListType = {
+ data: {
+ allMdx: {
+ edges: [articleType]
+ }
+ }
+}
+
+type articleType = {
+ node: {
+ excerpt: string,
+ frontmatter: {
+ archive: boolean,
+ date: string,
+ slug: string,
+ title: string
+ }
+ }
+}
+
+const IndexPage = (props: articleListType) => {
const postEdges = props.data.allMdx.edges;
const initWasm = () => {
@@ -22,13 +42,19 @@ const IndexPage = (props) => {
return (
-
)
}
-export default IndexPage
+export default IndexPage;
+
+export const Head = () => {
+
+}
export const pageQuery = graphql`
query IndexQuery {