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.