{{ if $show_breadcrumb }} {{ partial "components/breadcrumb" $current_page }} {{ end }}
{{/* Cover image */}} {{ $cover_image := partial "blox-core/functions/get_featured_image.html" . }} {{ if $cover_image }}
{{ $alt := (.Params.image.caption | default "") | plainify }} {{ $cover_image = $cover_image.Fit "1800x310 webp" }} {{$alt}} {{ with (.Params.image.alt_text | default .Params.image.caption) }} {{ . | markdownify | emojify }} {{ end }}
{{end}}
{{/* Fallback to filename as title (useful for default Obsidian note structure) */}}

{{ cond (ne .File nil) (.Title | default (title .File.ContentBaseName)) .Title }}

{{/* Only auto-list page children if _index has no content (or if it isn't a .File?) */}} {{ if and (not .Content) (gt (len $.Page.Pages) 0) }} {{end}} {{ .Content }}
{{ partial "components/feedback" . }} {{ partial "tags.html" . }} {{/* Show next/previous pages by default. */}} {{ if ne .Params.pager false }}
{{ partial "components/pager" . }}
{{ end }}
{{ partial "site_footer" . }}