From 9d0e2aceb887e8c93c23f7d94f8649d71e4be466 Mon Sep 17 00:00:00 2001 From: vjeantet Date: Wed, 9 Sep 2020 00:04:31 +0200 Subject: fix link to improve each page with netlify CMS --- exampleSite/config.toml | 2 +- layouts/partials/body-article-sidepage.html | 13 ++++--------- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 93c7e78..a0567a3 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -33,7 +33,7 @@ disableNavChevron = false # set true to hide next/prev chevron, default is false menushortcutsnewtab = false # set true to open shortcuts links to a new tab/window #editURL = "https://github.com/vjeantet/hugo-theme-docport/edit/master/exampleSite/content/" -editWithNetlifyCMSCollection = "pages" +editWithNetlifyCMSURL = "https://docport.netlify.app/admin/#/collections/pages/entries/" enableGitInfo = true diff --git a/layouts/partials/body-article-sidepage.html b/layouts/partials/body-article-sidepage.html index dead969..d675571 100644 --- a/layouts/partials/body-article-sidepage.html +++ b/layouts/partials/body-article-sidepage.html @@ -23,9 +23,9 @@ {{end}} - {{ if .Site.Params.editWithNetlifyCMSCollection }} + {{ if .Site.Params.editWithNetlifyCMSURL }}
  • - + {{T "Edit-this-page"}}
  • @@ -37,18 +37,13 @@ {{end}} {{with .GitInfo}} -
  • +
  • {{T "last-update-by"}} {{ .AuthorName }}
  • {{end}} - - - - - - + \ No newline at end of file -- cgit v1.2.3