{{- .Readme -}}
{{- else -}}
{{ .HTMLReadme }}
{{- end -}}{{ define "title"}}{{ range .BreadCrumbs }}{{ pathUnescape (index . 0)}}/{{ end }} at {{ .Ref }} · {{ .RepoInfo.FullName }}{{ end }}
{{ define "extrameta" }}
{{ $path := "" }}
{{ range .BreadCrumbs }}
{{ $path = printf "%s/%s" $path (index . 0) }}
{{ end }}
{{ template "repo/fragments/meta" . }}
{{ $title := printf "%s at %s · %s" $path .Ref .RepoInfo.FullName }}
{{ $url := printf "https://tangled.org/%s/tree/%s%s" .RepoInfo.FullName .Ref $path }}
{{ template "repo/fragments/og" (dict "RepoInfo" .RepoInfo "Title" $title "Url" $url) }}
{{ end }}
{{define "repoContent"}}
{{- .Readme -}}
{{- else -}}
{{ .HTMLReadme }}
{{- end -}}