The HTML template for Newsletter and Blog built with Hugo.
To contribute to this project, you'll first need to fork the repository to your own GitHub account. You can do this by clicking the "Fork" button at the top-right corner of this page.
Once you've forked the repository, you can clone it to your local machine and start making changes.
-
Clone the repository
git clone https://github.com/YourUsername/Newsletter.git
-
Install hugo For Arch based distros
sudo pacman -S hugo
For Debian based distros
sudo apt install hugo
For Fedora
sudo dnf install hugo
For other platforms, check here
-
Start the hugo server after navigating to the repository
hugo server
The server will be running at
localhost:1313
-
Create a new post
hugo new post/<post-name>.md
The post will be created in the
content/posts
folder -
Edit the post in the
content/post
folder -
Add images to the
static
folder. Refer to the existing posts for the image path -
Run
hugo
to build the sitehugo
The site will be built in the
public
folder -
Run
hugo serve
to serve the siteThe site will be served at
localhost:1313
-
Push the changes to the repository
git add . git commit -m "commit message" git push origin main