{"size": 347, "ext": "js", "max_stars_repo_path": "next-basic-blog/pages/post.js", "max_stars_repo_name": "fridge-cms/examples", "max_stars_repo_stars_event_min_datetime": "2018-06-17T21:11:36.000Z", "max_stars_repo_stars_event_max_datetime": "2018-06-17T21:11:36.000Z", "max_issues_repo_path": "next-basic-blog/pages/post.js", "max_issues_repo_name": "fridge-cms/examples", "max_issues_repo_issues_event_min_datetime": "2017-11-10T20:40:54.000Z", "max_issues_repo_issues_event_max_datetime": "2018-10-17T14:45:16.000Z", "max_forks_repo_path": "next-basic-blog/pages/post.js", "max_forks_repo_name": "fridge-cms/examples", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": 7, "max_forks_count": null, "avg_line_length": 19.2777777778, "max_line_length": 61, "alphanum_fraction": 0.5965417867}
import { HtmlContent } from 'fridge-next'

const Post = ({ post }) =>
  <main>
    <article>
      <h1>{post.title}</h1>
      <HtmlContent content={post.description} />
    </article>
  </main>

Post.getInitialProps = async ({ fridge, query: {post} }) => {
  return {
    post: await fridge.get(`content/post/${post}`)
  }
}

export default Post
