To add a new blog post to the Peskas Blog repository, please follow these steps:
If you don't have Hugo installed, you'll need to install it first:
-
On macOS:
brew install hugo
-
On Ubuntu:
sudo apt-get install hugo
-
On Windows, using Chocolatey:
choco install hugo -confirm
Make sure to check Hugo's official documentation for detailed installation instructions for your operating system.
-
Clone the repository:
git clone https://github.com/WorldFishCenter/peskas-blog.git cd peskas-blog
-
Create a new branch for your post:
git checkout -b <branch-name>
-
Create a new post using Hugo:
hugo new posts/filippo.md
Or create a new post manually by copying an existing post and renaming it.
-
Edit the new markdown file with your content. Start with the following front matter:
--- title: "Your Post Title" date: "YYYY-MM-DDTHH:MM:SS+00:00" draft: false description: "Post description" tags: - tag1 - tag2 ---
-
Add your content below the front matter in markdown format.
-
Preview your post locally:
hugo server
-
Once you're satisfied with your post, commit your changes:
git add . git commit -m "Add new post: <post-name>" git push origin <branch-name>
-
Open a pull request for your new branch on GitHub and request a review.
-
Once reviewed and approved, merge your pull request to publish the post.
Replace <branch-name>
and <post-name>
with appropriate names for your specific post.