Skip to content

Commit

Permalink
better <head> tag
Browse files Browse the repository at this point in the history
  • Loading branch information
hstove committed Feb 7, 2019
1 parent 4c980f1 commit 7bc665f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pages/blogs/show.js
Expand Up @@ -6,6 +6,7 @@ import BlogPost from '../../models/blogPost';

import Hr from '../../components/hr';
import PostCard from '../../components/post-card';
import Head from '../../components/head';

export default class ShowBlog extends React.Component {
static async getInitialProps({ query }) {
Expand Down Expand Up @@ -34,6 +35,7 @@ export default class ShowBlog extends React.Component {
const { blog } = this.props;
return (
<Flex flexWrap="wrap">
<Head title={blog.attrs.name} />
<Box width={1}>
<Type.h1 textAlign="center" display="block" color="black">
{blog.attrs.name}
Expand Down
2 changes: 2 additions & 0 deletions pages/posts/show.js
Expand Up @@ -4,6 +4,7 @@ import { fetchBlogPost } from '../../lib/api';
import { makeGraphiteUrl } from '../../lib/utils';
import PostHeader from '../../components/post-header';
import PostBody from '../../components/post-body';
import Head from '../../components/head';

export default class ShowBlogPost extends React.Component {
static async getInitialProps({ query }) {
Expand All @@ -21,6 +22,7 @@ export default class ShowBlogPost extends React.Component {
const { blogPost } = this.props;
return (
<>
<Head title={blogPost.title} />
<PostHeader blogPost={blogPost} />
<PostBody
content={blogPost.sanitizedContent}
Expand Down

0 comments on commit 7bc665f

Please sign in to comment.