Hugo Conditional Layout Rendering Link to heading
Run conditional logic on Hugo layout based on current route
This is janky I’m pretty sure, and a solution from someone who hasn’t read the docs.
{{ with $suffix := index (split .Permalink "/") -1 }}
{{ if ne $suffix "notes" }}
{{ partial "parent-link.html"}}
{{ end }}
{{ end }}
{{ .Content }}