Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
NotificationsYou must be signed in to change notification settings

hackclub/hcb-engr

Repository files navigation

Work-in-progress HCB engineering blog

Modifying content

All content (posts and authors) can be found in the/content directory.

Posts

Follow the following steps to create a new post:

  1. Create a new directory in/content/posts with the name of the post. (use kebab-case)
  2. Create a new file in the directory calledpost.mdx.
  3. Use the following format for metadata and post content:
importpostfrom'@/components/Post.js'exportdefaultpost({  title:'My New Post',  slug:'my-new-post',// make sure this matches the directory name  category:'new'// one of "new", "newsletter", "improvement", or "news"tags: ["receipts"],// an array of tags  authors: ["team"],// an array of authors (see /content/authors)  date:newDate("2024-11-07"),  primaryImage:image,// optionally, an image imported to be used in opengraph embeds  description:"This is a new post"// a short description of the post for opengraph embeds})#Post content goes here using either markdown or JSX

Then you're done!

/lib/authors.js

This file contains all of the authors that can be referenced in posts.


[8]ページ先頭

©2009-2025 Movatter.jp