Skip to content

Commit

Permalink
Update readme.md | Add steps for creating content
Browse files Browse the repository at this point in the history
  • Loading branch information
akashchandwani committed Jun 23, 2024
1 parent e98e296 commit 2b4ce8d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,24 @@ A personal blogging website created to share my thoughts and experiences on soft
4. Install the theme submodule using the command: `git submodule update --init --recursive --remote`
5. Install `pre-commit` extension in your text editor to maintain consistency in formatting. To install, run: `brew install pre-commit` and then `pre-commit-install` to update the pre-commit hook in your local repository

## Create a new content page

To create a new content page run the command
```sh
hugo new content content/blog/<your-page-name>.md
```

## Publish content

To publish the content you will have to

1. Set the `draft` key to false in the content page
2. Push the changes using `git push` command

## Frequently used commands

1. Run `pre-commit autoupdate` to fetch and install the latest version of the `pre-commit` hooks
2. To generate a blog page, run `hugo new content blog/<page-name>.md`
3. To run the server with draft views enabled, run `hugo server -D`
4. To run the server `hugo server`

0 comments on commit 2b4ce8d

Please sign in to comment.