|
1 | 1 | import React from "react"
|
2 | 2 | import { graphql } from 'gatsby'
|
3 | 3 |
|
4 |
| -import ArticleCard from "@alexwilson/legacy-components/src/article-card" |
| 4 | +import ArticleCard from "../components/article-card" |
5 | 5 | import Layout from "../components/layout"
|
6 | 6 | import SEO from "../components/seo"
|
7 | 7 |
|
8 | 8 | const IndexPage = ({ data, location }) => (
|
9 | 9 | <Layout location={location}>
|
10 |
| - <SEO title="Home" keywords={[`gatsby`, `application`, `react`]} /> |
| 10 | + <SEO title="Home" /> |
11 | 11 | <div className="alex-home">
|
12 |
| - <section className="alex-home__section"> |
13 |
| - </section> |
14 |
| - <section className="alex-home__section"> |
15 |
| - <h2><a className="heading" href="/blog/">Latest Writing</a></h2> |
16 |
| - <div className="alex-home__tilestack"> |
17 |
| - {data.allButWeeknotes.nodes.map((node) => |
18 |
| - <div key={node.contentId} className="alex-home__tilestack-item"> |
19 |
| - <ArticleCard article={node} withImage={false} withDate={false} /> |
20 |
| - </div> |
21 |
| - )} |
| 12 | + <section className="alex-home__section"> |
| 13 | + </section> |
| 14 | + <section className="alex-home__section"> |
| 15 | + <h2><a className="heading" href="/blog/">Latest Writing</a></h2> |
| 16 | + <div className="alex-home__tilestack"> |
| 17 | + {data.allButWeeknotes.nodes.map((node) => |
| 18 | + <div key={node.contentId} className="alex-home__tilestack-item"> |
| 19 | + <ArticleCard article={node} withImage={false} withDate={false} /> |
22 | 20 | </div>
|
23 |
| - </section> |
24 |
| - <section className="alex-home__section"> |
25 |
| - <h2><a className="heading" href="/topic/weeknotes">Latest Notes</a></h2> |
26 |
| - <div className="alex-home__tilestack"> |
27 |
| - {data.onlyWeeknotes.nodes.map((node) => |
28 |
| - <div key={node.contentId} className="alex-home__tilestack-item"> |
29 |
| - <ArticleCard article={node} withImage={false} withDate={false} /> |
30 |
| - </div> |
31 |
| - )} |
| 21 | + )} |
| 22 | + </div> |
| 23 | + </section> |
| 24 | + <section className="alex-home__section"> |
| 25 | + <h2><a className="heading" href="/topic/weeknotes">Latest Notes</a></h2> |
| 26 | + <div className="alex-home__tilestack"> |
| 27 | + {data.onlyWeeknotes.nodes.map((node) => |
| 28 | + <div key={node.contentId} className="alex-home__tilestack-item"> |
| 29 | + <ArticleCard article={node} withImage={false} withDate={false} /> |
32 | 30 | </div>
|
33 |
| - </section> |
| 31 | + )} |
| 32 | + </div> |
| 33 | + </section> |
34 | 34 | </div>
|
35 | 35 | </Layout>
|
36 | 36 | )
|
@@ -71,6 +71,11 @@ export const query = graphql`
|
71 | 71 | }
|
72 | 72 | }
|
73 | 73 | }
|
| 74 | + site { |
| 75 | + siteMetadata { |
| 76 | + siteUrl |
| 77 | + } |
| 78 | + } |
74 | 79 | }
|
75 | 80 |
|
76 | 81 | `
|
|
0 commit comments