{{ if $show_breadcrumb }}
{{ partial "components/breadcrumb" $current_page }}
{{ end }}
{{/* Cover image */}}
{{ if and .Params.cover.image }}
{{- $img := "" -}}
{{ $alt := (.Params.cover.caption | default "") | plainify }}
{{ $destination := .Params.cover.image }}
{{ $is_remote := strings.HasPrefix $destination "http" }}
{{- if not $is_remote -}}
{{- $img = (.Page.Resources.ByType "image").GetMatch $destination -}}
{{- if not $img -}}
{{- $img = resources.Get (path.Join "media" $destination) -}}
{{- end -}}
{{- end -}}
{{ if $img }}
{{ $img = $img.Fit "1800x310 webp" }}
{{ else }}
{{ end }}
{{ with .Params.cover.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) }}
{{ partial "tags.html" . }}
{{/* Show next/previous pages by default. */}}
{{ if ne .Params.pager false }}
{{ end }}
-
{{ range $.Page.Pages }}
-
{{.LinkTitle | default (title .File.TranslationBaseName) }}
{{if .Summary}}{{.Summary | plainify | emojify}}
{{end}}
{{end}}