|
@@ -1,6 +1,5 @@
|
|
|
-{{/* This makes `edit_page` optional in `params.toml` and prevents errors if it's removed. */}}
|
|
|
-{{ if site.Params.edit_page }}
|
|
|
-{{ if site.Params.edit_page.repo_url | and (index site.Params.edit_page.editable .Type) | and (ne .Params.editable false) | or .Params.editable }}
|
|
|
+{{/* Add link to let visitors edit the page on GitHub. */}}
|
|
|
+{{ if .Params.editable | and site.Params.edit_page.repo_url }}
|
|
|
{{/* Get language subfolder for multilingual sites. */}}
|
|
|
{{/* Limitations: the subfolder param, `<LANG>.contentDir`, is unexposed in the Hugo `site` API so we attempt to workaround this issue. */}}
|
|
|
{{ $content_dir := "content" }}
|
|
@@ -16,4 +15,3 @@
|
|
|
</a>
|
|
|
</p>
|
|
|
{{ end }}
|
|
|
-{{ end }}
|