{{ define "repo/fragments/readme" }}
{{- if .ReadmeFileName -}}
{{ i "file-text" "w-4 h-4" "text-gray-600 dark:text-gray-400" }} {{ .ReadmeFileName }} {{ template "repo/fragments/copyFileButton" (dict "Url" (printf "/%s/raw/%s/%s" .RepoInfo.FullName (pathEscape .Ref) .ReadmeFileName)) }}
{{- end -}}
{{- if .Raw -}}

                {{- .Readme -}}

{{- else -}} {{ .HTMLReadme }} {{- end -}}
{{ template "repo/fragments/copyFileScript" }} {{ end }}