Issue with gitlab pages - theme not rendering

Hi Team,
I am using gitlab pages to build static website and using the theme hugo-theme-learn.
Currently, I am not able to view any of the css or js from this theme and page is loading now without any css and js files.
When I opened chrome inspect option, I am seeing all css and js files are not found error as 404.

hugo theme - https://github.com/matcornic/hugo-theme-learn/

error chrome page enclosed.

config.toml

baseURL = "/"
languageCode = "en-US"
defaultContentLanguage = "en"
title = "TEST"
theme = "hugo-theme-learn"
# themesdir = "../.."
metaDataFormat = "yaml"
defaultContentLanguageInSubdir= true

.gitlab-ci.yaml

image: registry.gitlab.com/pages/hugo:latest
pages:
  script:
  - hugo
  artifacts:
    paths:
    - public
  only:
  - master

Hi,

make sure that this is set to the correct value, ie the url where your site gets published.

1 Like

Thanks, it worked !