Browse Source

chore: rename /home/garrit -> ~/garrit

restructure
Garrit Franke 3 years ago
parent
commit
c695f757ea
Signed by: garrit
GPG Key ID: 65586C4DDA55EA2C
  1. 2
      components/Layout.js
  2. 4
      pages/index.js
  3. 2
      pages/posts/[post].js

2
components/Layout.js

@ -28,7 +28,7 @@ export default function Layout({
return ( return (
<section className={`layout`}> <section className={`layout`}>
<Meta siteTitle={siteTitle} siteDescription={siteDescription} /> <Meta siteTitle={siteTitle} siteDescription={siteDescription} />
<Header siteTitle="/home/garrit" /> <Header siteTitle="~/garrit" />
<div className="content">{children}</div> <div className="content">{children}</div>
{windowWidth <= 768 && <Profile className="content"></Profile>} {windowWidth <= 768 && <Profile className="content"></Profile>}
<style jsx> <style jsx>

4
pages/index.js

@ -4,7 +4,7 @@ import matter from "gray-matter";
const Index = (props) => { const Index = (props) => {
return ( return (
<Layout pathname="/" siteTitle="/home/garrit" siteDescription=""> <Layout pathname="/" siteTitle="~/garrit" siteDescription="">
<section> <section>
<BlogList posts={props.posts} /> <BlogList posts={props.posts} />
</section> </section>
@ -40,7 +40,7 @@ export async function getStaticProps() {
return { return {
props: { props: {
posts, posts,
title: "/home/garrit", title: "~/garrit",
description: "", description: "",
}, },
}; };

2
pages/posts/[post].js

@ -185,7 +185,7 @@ export async function getStaticProps({ ...ctx }) {
return { return {
props: { props: {
siteTitle: "/home/garrit", siteTitle: "~/garrit",
frontmatter: data.data, frontmatter: data.data,
markdownBody: data.content, markdownBody: data.content,
}, },

Loading…
Cancel
Save