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 (
<section className={`layout`}>
<Meta siteTitle={siteTitle} siteDescription={siteDescription} />
<Header siteTitle="/home/garrit" />
<Header siteTitle="~/garrit" />
<div className="content">{children}</div>
{windowWidth <= 768 && <Profile className="content"></Profile>}
<style jsx>

4
pages/index.js

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

2
pages/posts/[post].js

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

Loading…
Cancel
Save