Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run.sh only builds partial site because of $HUGO_THEME specification. #40

Open
simonszu opened this issue Apr 18, 2018 · 0 comments
Open

Comments

@simonszu
Copy link

I have a blog with 308 pages. I have noticed that the run.sh script only builds the site partially:

Building one time...

                   | EN
+------------------+----+
  Pages            | 33
  Paginator pages  |  0
  Non-page files   | 71
  Static files     |  1
  Processed images | 68
  Aliases          | 31
  Sitemaps         |  1
  Cleaned          |  0

Total in 675 ms
Sleeping for 60 seconds...

However, when i enter the container and execute the hugo command manually, all 308 pages are built:

$ docker exec -it hugo_app_1 /bin/sh                                                                                                                                                                 126 [10:14:34]
/src # /usr/local/sbin/hugo --source="/src" --destination="/output"

                   | EN
+------------------+-----+
  Pages            | 308
  Paginator pages  |  40
  Non-page files   |  71
  Static files     |   3
  Processed images |  68
  Aliases          |  32
  Sitemaps         |   1
  Cleaned          |   0

Total in 4202 ms

I have observed this behaviour after the update to 0.39, i think. If i remove the $HUGO_THEME argument from the build command, all pages are built by run.sh again. Why has the image specified $HUGO_THEME at all? This is usually configured in the hugo config file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant