I am listing all the logs like this. For each child (log-1, log-2, etc) I want to also display a link to its direct parent section (log-2 → project-1, log-4 → project2, etc). However, when I do {{ $log.Parent }} all I get is the topmost section, projects.
Also, instead of setting is_log = true in the front matter of each log file, you might consider setting type = 'logs' instead. That would make it easy to create a single page template that is unique to logs:
And if your log files have a consistent name pattern (e.g., they begin with “log”), you can set the .Type in your site configuration instead of adding front matter to each file:
[[cascade]]
type = 'logs'
[cascade._target]
path = '/projects/*/log*.md'
Either way, your page selection is reduced to:
{{ $logs := where site.RegularPages "Type" "logs" }}
I created a blank project with the same exact content structure. For whatever reason it works exactly as I expect on the new one. Are there any projects settings that might affect this behavior?
I also appreciate the feedback on the style. The is_log was a poor solution.