refact: rename Column components to be generic

This commit is contained in:
Jean-Philippe Sirois
2019-11-11 17:18:09 -08:00
parent ba88927304
commit 711da3c517
25 changed files with 553 additions and 555 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
import { graphql } from "gatsby"
import React, { FC, Fragment } from "react"
import { ColumnHeader } from "../components/ColumnHeader"
import { Header } from "../components/Header"
import { Markdown } from "../components/Markdown"
import { SEO } from "../components/SEO"
import { humanize } from "../utils"
@@ -15,7 +15,7 @@ const Archive: FC<any> = ({ data }) => {
return (
<Fragment>
<SEO title={title} description={excerpt} />
<ColumnHeader
<Header
relativePath={relativePath}
basePath="/archives"
title={title}
+2 -2
View File
@@ -1,6 +1,6 @@
import { graphql } from "gatsby"
import React, { FC, Fragment } from "react"
import { ColumnHeader } from "../components/ColumnHeader"
import { Header } from "../components/Header"
import { Markdown } from "../components/Markdown"
import { SEO } from "../components/SEO"
@@ -14,7 +14,7 @@ const LanguagePost: FC<any> = ({ data }) => {
return (
<Fragment>
<SEO title={frontmatter.title} description={excerpt} />
<ColumnHeader
<Header
relativePath={relativePath}
basePath="/resources"
title={frontmatter.title}