Create a blog by editing markdown files.
- Fork this repo if you have not already done so
- On the repo page, click "Actions"
- Click the button to enable actions
- On the repo page, click "Settings --> Pages -> Source" and choose "GitHub Actions"
- Add content in the
content/directory following the pattern incontent-demo:- "Edit file --> Create new file"
content/config.jsonand add content of the form:
{ "siteName": "Blog Name", "siteDescription": "A description of the blog", "host": "https://some-blog-site.com" }- At least one file ending in
.mdin thecontent/pages/directory with content of the form
--- index: 0 title: About --- Something about this blog- At least one file ending in
.mdin thecontent/posts/directory with content of the form
--- created: 2024-02-20 title: Some title --- Some text - "Edit file --> Create new file"
- Go to https://eobrain.github.io/simplestblog/ but replace "eobrain" with your GitHub username. You should see the content.
- Fork this repo
- At command line:
nvm use
npm install
npm run demo
- This will copy
content-demo/tocontent/and starts a development server that you can view in your browser. - To create your own entries, edit the markdown files in
content/postsandcontent/pagesand then at the command line:
npm start