diff --git a/exampleSite/config/_default/params.toml b/exampleSite/config/_default/params.toml index bc21a1d7..dff89c14 100644 --- a/exampleSite/config/_default/params.toml +++ b/exampleSite/config/_default/params.toml @@ -45,7 +45,7 @@ privacy_pack = false # Enable visitors to edit pages? # `repo` defines the repository URL. `editable` defines which page types can be edited. -edit_page = {repo_url = "https://github.com/gcushen/hugo-academic", editable = {docs = true, page = false, post = false}} +edit_page = {repo_url = "https://github.com/gcushen/hugo-academic", repo_branch = "master", editable = {docs = true, page = false, post = false}} # Date and time format (refer to https://sourcethemes.com/academic/docs/customization/#date-format ) # Examples: "Mon, Jan 2, 2006" or "2006-01-02" diff --git a/layouts/partials/edit_page.html b/layouts/partials/edit_page.html index 6a55528e..769ab18c 100644 --- a/layouts/partials/edit_page.html +++ b/layouts/partials/edit_page.html @@ -1,6 +1,6 @@ {{ if site.Params.edit_page.repo_url | and (index site.Params.edit_page.editable .Type) | and (ne .Params.editable false) | or .Params.editable }}

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