LiveReload not rebuilding page resources

Here’s another one:

I’m trying to use several markdown files as resources for a single page. Everything is compiling together when I first run Hugo server -D but when I make changes to these sub-pages they don’t seem to be updating though they’re being detected:

Change detected, rebuilding site
2018-04-25 20:40:47.046 -0400
Source changed "/Users/jaredwolff/Web/circuitdojo-hugo/content/jeep-project/crimping.md": WRITE
Total in 4 ms

The tree structure looks like the following:

.
├── _index.md
└── jeep-project
    ├── crimping-2.md
    ├── crimping.md
    ├── documents
    │   ├── circuit-dojo-jeep-project-bom.csv
    │   └── circuit-dojo-schematic.pdf
    ├── images
    ├── index.md
    ├── schematic.md
    ├── soldering.md
    └── tracing.md

I’ve also tried running it with the disableFastRender flag with no improvement. Interestingly, the index.md files seem to render ok.

I’m referencing the content in the template like the following:

    <div id="elements">
    {{ range sort (.Resources.ByType "page") "Params.order" }}
      {{ if eq .Params.Order 0 }}
      <div id="element-{{.Params.Order}}" class="row justify-content-center">
      {{ else }}
      <div hidden id="element-{{.Params.Order}}" class="row justify-content-center">
      {{ end }}
        <div class="col-lg-8">
          <h3>{{.Title}}</h3>
          {{ if .Params.Video }}
          <hr>
          <iframe width="100%" height="400" src="https://www.youtube.com/embed/{{.Params.Video}}?rel=0" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
          {{ end }}
          <hr>
          {{ .Content }}
        </div>
      </div>
    {{ end }}
    </div>

I’m running 0.38.2.

Upgraded to 0.4 and it seems ok.

I also have an issue regarding page bundles and live reload. When using hugo server and then creating a page bundle, it picks up the .md file just fine. However, if I add some images, hugo does not include them into the .Resources variable unless I restart the server which is uncomfortable. Does anyone else have this problem or is this intended? If it’s the former, then we probably should create a github issue for this.

I’m using the latest hugo 0.40.3, developing the page on windows.

You should.

Issue created: https://github.com/gohugoio/hugo/issues/4768