Hugo

[SOLVED] 0.60.0/1 page not updated when changing partial (event received OK)

Seems new to 0.60.0 & 0.60.1.

When I update a partial, hugo sees it and refresh the page. But the content of the page do not change.

I have to stop & restart hugo for the page to be updated according to the partial.

$ hugo server --gc --verbose --disableFastRender
INFO 2019/11/29 18:31:32 Using config file: 
Building sites … INFO 2019/11/29 18:31:32 syncing static files to /

                   | FR  | EN   
+------------------+-----+-----+
  Pages            |  32 |  30  
  Paginator pages  |   0 |   0  
  Non-page files   |   0 |   0  
  Static files     | 156 | 156  
  Processed images | 258 |   1  
  Aliases          |   1 |   0  
  Sitemaps         |   2 |   1  
  Cleaned          |   0 |   0  

Built in 468 ms
Watching for changes in /Users/toto/Documents/Git/lagouille.com/{archetypes,assets,content,data,i18n,layouts,static,themes}
Watching for config changes in /Users/toto/Documents/Git/lagouille.com/config.toml
Environment: "development"
Serving pages from memory
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop

INFO 2019/11/29 18:31:53 Received System Events: ["/Users/toto/Documents/Git/lagouille.com/layouts/partials/test2.html": CHMOD "/Users/toto/Documents/Git/lagouille.com/layouts/partials/test2.html": WRITE "/Users/toto/Documents/Git/lagouille.com/layouts/partials/test2.html": CHMOD]

Change detected, rebuilding site.
2019-11-29 18:31:53.801 +0100
Template changed "/Users/toto/Documents/Git/lagouille.com/layouts/partials/test2.html": WRITE
Total in 373 ms
INFO 2019/11/29 18:31:54 Received System Events: ["/Users/toto/Documents/Git/lagouille.com/layouts/partials/test2.html": CHMOD]

If this partial is included in a shortcode, it’s a known limitation (there is a GitHub issue).

1 Like

Yes it exactly this cause.
Thanks a lot for the light !!

EDIT : https://github.com/gohugoio/hugo/issues/4663