Show Your Work

Published: (February 15, 2026 at 01:08 PM EST)
1 min read
Source: Dev.to

Source: Dev.to

Configure the site

diff --git a/site/hugo.toml b/site/hugo.toml
index 4dba0ec..7d59855 100644
--- a/site/hugo.toml
+++ b/site/hugo.toml
@@ -1,6 +1,6 @@
-baseURL = 'https://example.org/'
+baseURL = 'https://imomaliev.com/'
 languageCode = 'en-us'
-title = 'My New Hugo Site'
+title = 'Blog'

 [module]
   replacements = 'github.com/imomaliev/blog/theme -> ../../theme'

Follow all the steps in the Host on GitHub Pages guide.

Update workflow to build in and publish from site directory

diff --git a/.github/workflows/hugo.yaml b/.github/workflows/hugo.yaml
index 20e1d20..d8cc26d 100644
--- a/.github/workflows/hugo.yaml
+++ b/.github/workflows/hugo.yaml
@@ -74,6 +74,7 @@ jobs:
             hugo-
       - name: Build the site
         run: |
+          cd site/
           hugo \
             --gc \
             --minify \
@@ -88,7 +89,7 @@ jobs:
       - name: Upload artifact
         uses: actions/upload-pages-artifact@v4
         with:
-          path: ./public
+          path: ./site/public
   deploy:
     environment:
       name: github-pages

Configure a custom domain

We are going to publish our site via GitHub Actions, so we can skip setting a CNAME in step 4. In step 5 we will set AAAA records. Verify the domain with GitHub.

And we are live!

Title is inspired by the book of the same name.

0 views
Back to Blog

Related posts

Read more »