Please see also https://github.com/gohugoio/hugo/issues/5061 for a workaround that we have been using for Hugo’s Themes website, as in using the environment variable HUGO_THEME instead of -t
command-line option.
2 Likes