diff --git a/_components/header.tsx b/_components/header.tsx
index f353cc9..4658c51 100644
--- a/_components/header.tsx
+++ b/_components/header.tsx
@@ -1,6 +1,9 @@
export interface Props {
title: string;
description?: string;
+ author?: {
+ name: string;
+ };
comp: any;
}
@@ -8,6 +11,7 @@ export default function(props: Props) {
return (
{ props.title }
+ {props.author && By {props.author.name}
}
{props.comp.separator()}
{ props.description }
diff --git a/_includes/layouts/base.tsx b/_includes/layouts/base.tsx
index dd3da68..a593603 100644
--- a/_includes/layouts/base.tsx
+++ b/_includes/layouts/base.tsx
@@ -1,4 +1,4 @@
-export default function({ title, description, children, comp, metas, links }) {
+export default function({ title, description, children, comp, metas, links, author }) {
return (
@@ -25,7 +25,7 @@ export default function({ title, description, children, comp, metas, links }) {
{ comp.navbar() }
- { comp.header({title, description}) }
+ { comp.header({title, description, author}) }
{children}
{ comp.footer() }