Hugo Documentation

freshPink
Hello! Let me introduce the freshPink theme!
Demo Site
Check out the Demo Site for a simple example and detailed tutorial.
Getting Started with freshPink
This guide explains how to install and apply the theme using Hugo Modules (recommended). Follow these steps to get your blog up and running:
1. Create a New Hugo Site
Open your terminal and run:
hugo new site my-blog
cd my-blog
2. Initialize Hugo Modules
Initialize your Hugo site as a module by running:
hugo mod init github.com/yourname/my-blog
3. Configure Your Site
Open your hugo.toml
file and customize it to match your site. For example:
baseURL = "https://yourusername.github.io/your-repo-name/"
title = "My Awesome Blog"
canonifyURLs = true
relativeURLs = false
- baseURL: Set this to the URL of your GitHub Pages site (usually in the format
https://username.github.io/repo-name/
). - title: Choose a name for your blog.
- Make sure the
baseURL
matches the repository name you use for GitHub Pages.
4. Add freshPink as a Hugo Module
In the same hugo.toml
file, add the following section to import the theme:
[module]
[[module.imports]]
path = "github.com/elecbrandy/freshpink"
5. Download the Theme Module
Run this command in your terminal to download the theme:
hugo mod get github.com/elecbrandy/freshpink
6. Run Your Site
Finally, run the Hugo server:
hugo server
Open your browser and visit http://localhost:1313 to see your site with the freshPink theme applied.
Keeping the Theme Up to Date
To update the theme to the latest commit in the future, run:
hugo mod get -u github.com/elecbrandy/freshpink
If you encounter any cache issues, you can clean up Hugo Modules with:
hugo mod clean
Need Help?
If you have any issues or questions, please feel free to open an issue on the GitHub repository.
Thank you for choosing the freshPink theme! Enjoy your blogging experience!