@@ -2,6 +2,7 @@ import Head from 'next/head'
22import Link from 'next/link'
33import { useState } from 'react';
44import Container from '../components/Container'
5+import Header from '../components/Header'
56import { getAllPosts } from '../lib/lib'
67
78function TabCarousel(props) {
@@ -25,14 +26,7 @@ export default function Home({ posts, events }) {
2526
2627 return (
2728 <Container>
28− <header className="layout-wide flex justify-between items-center pt-8">
29− <a href="/docs" className="type-ui">Urbit</a>
30− <nav className="flex items-center">
31− <a href="/docs" className="type-ui text-gray mr-6">Docs</a>
32− <a href="/blog" className="type-ui text-gray mr-6">Blog</a>
33− <button className="button-sm">Download Port</button>
34− </nav>
35− </header>
29+ <Header />
3630
3731 <section className="layout-narrow pt-48">
3832 <h1>A general-purpose, peer-to-peer, personal computing system.</h1>
@@ -128,6 +122,9 @@ export default function Home({ posts, events }) {
128122 )
129123 })
130124 }
125+ <div>
126+ <Link href="/blog"><button className="button-lg type-ui">Read More</button></Link>
127+ </div>
131128 </div>
132129 <div className="blog-grid">
133130 {
@@ -173,9 +170,6 @@ export async function getStaticProps() {
173170 'date',
174171 'description',
175172 'extra',
176− // 'author',
177− // 'ship',
178− // 'image'
179173 ], 'blog')
180174
181175 const events = getAllPosts([
@@ -184,8 +178,6 @@ export async function getStaticProps() {
184178 'date',
185179 'extra',
186180 ], 'events')
187−
188− console.log(posts)
189181
190182 return {
191183 props: { posts, events },