Hmm.
I think it’s highly unlikely to be a problem with the theme or the directory structure.
I can reproduce your bug in a pipeline, and locally in the Docker image that you are using, like this:
$ docker run -it --entrypoint /bin/sh -v ${PWD}:/data registry.gitlab.com/pages/hugo/hugo_extended:latest
# cd /data
# hugo
This is the same Docker image that you’re using in the pipeline, so it really should produce the same output.
hugo --config
looks right in both places, and adding debug info and warnings to the pipeline produces this output:
$ hugo --verbose --debug -D --printI18nWarnings --printMemoryUsage --printPathWarnings --printUnusedTemplates
Start building sites …
hugo v0.97.3-078053a43d746a26aa3d48cf1ec7122ae78a9bb4+extended linux/amd64 BuildDate=2022-04-18T17:22:19Z VendorInfo=gohugoio
INFO 2022/04/20 22:17:29 syncing static files to /
DEBUG 2022/04/20 22:17:29 Render page to "/index.html"
INFO 2022/04/20 22:17:29 Downloading: https://api.esv.org/v3/passage/text/?include-short-copyright=false&include-headings=false&include-footnotes=false&include-passage-references=false&q=Psalm+97 ...
DEBUG 2022/04/20 22:17:29 found menu: "main", in site config
DEBUG 2022/04/20 22:17:29 found menu: "main", in site config
DEBUG 2022/04/20 22:17:29 Render page Today's Prayer Site to "/index.html"
DEBUG 2022/04/20 22:17:29 creating alias: /page/1/index.html redirecting to https://msquaredweb.gitlab.io/todaysprayer/
DEBUG 2022/04/20 22:17:29 Render page Categories to "/categories/index.html"
DEBUG 2022/04/20 22:17:29 Render page Tags to "/tags/index.html"
DEBUG 2022/04/20 22:17:29 Render XML for "sitemap" to "/sitemap.xml"
DEBUG 2022/04/20 22:17:29 Render 404 page to "/404.html"
DEBUG 2022/04/20 22:17:29 Render page Today's Prayer Site to "/index.xml"
DEBUG 2022/04/20 22:17:29 Render page Categories to "/categories/index.xml"
DEBUG 2022/04/20 22:17:29 Render page Tags to "/tags/index.xml"
| EN
-------------------+-----
Pages | 8
Paginator pages | 0
Non-page files | 0
Static files | 2
Processed images | 0
Aliases | 1
Sitemaps | 1
Cleaned | 0
WARN 2022/04/20 22:17:29 Duplicate target paths: /index.html (2)
WARN 2022/04/20 22:17:29 Template _default/_markup/render-image.html is unused, source file /builds/snim2/todaysprayer/themes/PaperMod/layouts/_default/_markup/render-image.html
WARN 2022/04/20 22:17:29 Template _default/archives.html is unused, source file /builds/snim2/todaysprayer/themes/PaperMod/layouts/_default/archives.html
WARN 2022/04/20 22:17:29 Template _default/index.json is unused, source file /builds/snim2/todaysprayer/themes/PaperMod/layouts/_default/index.json
WARN 2022/04/20 22:17:29 Template _default/search.html is unused, source file /builds/snim2/todaysprayer/themes/PaperMod/layouts/_default/search.html
WARN 2022/04/20 22:17:29 Template partials/comments.html is unused, source file /builds/snim2/todaysprayer/themes/PaperMod/layouts/partials/comments.html
WARN 2022/04/20 22:17:29 Template partials/home_info.html is unused, source file /builds/snim2/todaysprayer/themes/PaperMod/layouts/partials/home_info.html
WARN 2022/04/20 22:17:29 Template partials/index_profile.html is unused, source file /builds/snim2/todaysprayer/themes/PaperMod/layouts/partials/index_profile.html
WARN 2022/04/20 22:17:29 Template partials/post_nav_links.html is unused, source file /builds/snim2/todaysprayer/themes/PaperMod/layouts/partials/post_nav_links.html
WARN 2022/04/20 22:17:29 Template partials/share_icons.html is unused, source file /builds/snim2/todaysprayer/themes/PaperMod/layouts/partials/share_icons.html
WARN 2022/04/20 22:17:29 Template partials/social_icons.html is unused, source file /builds/snim2/todaysprayer/themes/PaperMod/layouts/partials/social_icons.html
WARN 2022/04/20 22:17:29 Template partials/svg.html is unused, source file /builds/snim2/todaysprayer/themes/PaperMod/layouts/partials/svg.html
WARN 2022/04/20 22:17:29 Template partials/templates/opengraph.html is unused, source file /builds/snim2/todaysprayer/themes/PaperMod/layouts/partials/templates/opengraph.html
WARN 2022/04/20 22:17:29 Template partials/templates/schema_json.html is unused, source file /builds/snim2/todaysprayer/themes/PaperMod/layouts/partials/templates/schema_json.html
WARN 2022/04/20 22:17:29 Template partials/templates/twitter_cards.html is unused, source file /builds/snim2/todaysprayer/themes/PaperMod/layouts/partials/templates/twitter_cards.html
WARN 2022/04/20 22:17:29 Template partials/toc.html is unused, source file /builds/snim2/todaysprayer/themes/PaperMod/layouts/partials/toc.html
WARN 2022/04/20 22:17:29 Template robots.txt is unused, source file /builds/snim2/todaysprayer/themes/PaperMod/layouts/robots.txt
WARN 2022/04/20 22:17:29 Template shortcodes/blockquote.html is unused, source file /builds/snim2/todaysprayer/themes/PaperMod/layouts/shortcodes/blockquote.html
WARN 2022/04/20 22:17:29 Template shortcodes/category-menu.html is unused, source file /builds/snim2/todaysprayer/layouts/shortcodes/category-menu.html
WARN 2022/04/20 22:17:29 Template shortcodes/collapse.html is unused, source file /builds/snim2/todaysprayer/themes/PaperMod/layouts/shortcodes/collapse.html
WARN 2022/04/20 22:17:29 Template shortcodes/figure.html is unused, source file /builds/snim2/todaysprayer/themes/PaperMod/layouts/shortcodes/figure.html
WARN 2022/04/20 22:17:29 Template shortcodes/ltr.html is unused, source file /builds/snim2/todaysprayer/themes/PaperMod/layouts/shortcodes/ltr.html
WARN 2022/04/20 22:17:29 Template shortcodes/rawhtml.html is unused, source file /builds/snim2/todaysprayer/themes/PaperMod/layouts/shortcodes/rawhtml.html
WARN 2022/04/20 22:17:29 Template shortcodes/requests.html is unused, source file /builds/snim2/todaysprayer/layouts/shortcodes/requests.html
WARN 2022/04/20 22:17:29 Template shortcodes/rtl.html is unused, source file /builds/snim2/todaysprayer/themes/PaperMod/layouts/shortcodes/rtl.html
Total in 265 ms
So, it seems that the information from the APIs that you are using is being fetched, but even so, nothing is appearing in the <main></main>
section of your index page. I’m not sure whether the duplicate target paths is just this issue or something else.
This isn’t an answer to your problem, but this is the kind of debugging you need to be thinking about.