{{/* Add link to let visitors edit the page on GitHub. */}} {{ if .Params.editable | and site.Params.features.repository.url }} {{/* Get language subfolder for multilingual sites. */}} {{/* Limitations: the subfolder param, `.contentDir`, is unexposed in the Hugo `site` API so we attempt to workaround this issue. */}} {{ $content_dir := "content" }} {{ if site.Params.features.repository.content_dir }} {{ $content_dir = site.Params.features.repository.content_dir }} {{else}} {{/* Attempt to get content dir from the LanguagePrefix URI, but defaultContentLanguageInSubdir can break this assumption. */}} {{ $content_dir = cond site.IsMultiLingual (cond (ne .Site.LanguagePrefix "") (printf "%s%s" $content_dir .Site.LanguagePrefix) $content_dir) $content_dir }} {{end}}

{{ i18n "edit_page" | default "Edit this page" }}

{{ end }}