netlify.toml). Check with hugo version. Use the extended edition if you plan to add SCSS of your own.Create a site (YAML configuration is recommended because the theme ships a YAML example):
hugo new site my-site --format="yaml"
cd my-site
Add the theme – pick one:
Clone (best if you will edit theme files):
cd themes
git clone https://github.com/gurusabarish/hugo-profile.git
cd ..
Git submodule (best for receiving upstream updates):
git init
git submodule add https://github.com/gurusabarish/hugo-profile.git themes/hugo-profile
Copy the example configuration into the site root:
cp -f themes/hugo-profile/exampleSite/hugo.yaml ./hugo.yaml
The file already contains theme: hugo-profile.
(Recommended) Copy the example content and images so the blog, gallery and images work immediately:
rsync -av themes/hugo-profile/exampleSite/static/ ./static/
rsync -av themes/hugo-profile/exampleSite/content/ ./content/
Hugo only reads content/ and static/ from your site root (and from the theme root), not from the theme’s exampleSite/ folder, which is why this copy step is needed.
Run the dev server:
hugo server
Open http://localhost:1313. Edits to hugo.yaml, content and static files are live-reloaded.
You can also work inside the repository itself:
git clone https://github.com/gurusabarish/hugo-profile.git
cd hugo-profile/exampleSite
hugo server --themesDir ../..
--themesDir ../.. tells Hugo the theme named in hugo.yaml lives two directories up.
cd themes/hugo-profile && git pullgit submodule update --remote --mergeCheck your hugo.yaml against the latest exampleSite/hugo.yaml after updating – new options are added over time.
Continue with the Configuration Reference.