diff options
author | vjeantet <valere.jeantet@gmail.com> | 2020-09-09 01:04:31 +0300 |
---|---|---|
committer | vjeantet <valere.jeantet@gmail.com> | 2020-09-09 01:04:31 +0300 |
commit | 9d0e2aceb887e8c93c23f7d94f8649d71e4be466 (patch) | |
tree | 27c4d84f45cc2a6a75dce3478d4a7d4b4563a6d1 | |
parent | 0e20e8f94d4f10e351fef322641b1ed591c23631 (diff) |
fix link to improve each page with netlify CMS
-rw-r--r-- | exampleSite/config.toml | 2 | ||||
-rw-r--r-- | 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 @@ </li> {{end}} - {{ if .Site.Params.editWithNetlifyCMSCollection }} + {{ if .Site.Params.editWithNetlifyCMSURL }} <li> - <a href="{{.Site.BaseURL}}/admin/#/collections/{{ .Site.Params.editWithNetlifyCMSCollection }}/entries/{{with .File}}{{ replace .Dir "\\" "/" | safeURL }}{{ .BaseFileName }}{{end}}" target="blank"> + <a href="{{ .Site.Params.editWithNetlifyCMSURL }}{{with .File}}{{ replace .Dir "\\" "/" | safeURL }}{{ .BaseFileName }}{{end}}" target="blank"> <i class="fab fa-github"></i> {{T "Edit-this-page"}}</a> </li> @@ -37,18 +37,13 @@ </li> {{end}} {{with .GitInfo}} - <li title="{{.AuthorDate}}"> + <li title=""> <i class='fas fa-user'></i> {{T "last-update-by"}} {{ .AuthorName }} </li> {{end}} - - - - - - </ul> + </ul> </nav> </div>
\ No newline at end of file |