Now that we have podman up and running, it’s time to create a site. The steps to create the pages are for a later posts, but for now a short explanation how to build the html code:

We use the podman exec command to give the build command.

$ podman exec rveen-dev-hugo hugo
Start building sites …
hugo v0.111.3-5d4eb5154e1fed125ca8e9b5a0315c4180dab192+extended linux/amd64 BuildDate=2023-03-12T11:40:50Z VendorInfo=hugoguru

                   | EN
-------------------+-----
  Pages            | 11
  Paginator pages  |  0
  Non-page files   |  0
  Static files     |  4
  Processed images |  0
  Aliases          |  4
  Sitemaps         |  1
  Cleaned          |  0

Total in 575 ms

The command hugo will create a directory called public which contains the html pages.

$ ls -l
total 8
drwxr-xr-x 1 rvdev users   0 Feb 20 19:35 archetypes/
-rw-r--r-- 1 rvdev users 880 Feb 20 19:35 config.toml
drwxr-xr-x 1 rvdev users   0 Feb 20 19:35 content/
drwxr-xr-x 1 rvdev users   0 Feb 20 19:28 layouts/
drwxr-xr-x 1 rvdev users   0 Feb 20 19:53 public/
drwxr-xr-x 1 rvdev users   0 Feb 20 19:32 resources/
drwxr-xr-x 1 rvdev users   0 Feb 20 19:28 static/
drwxr-xr-x 1 rvdev users   0 Feb 20 19:28 themes/

For now, we manually copy the contents of this directory to the webserver. In the future, we will automate this step.