Replies: 2 comments 1 reply
-
Your the first one to bring this up, but I think it's certainly a should have — so I'm planning to add this. I'm thinking of:
Note, for both GitHub and GitLab the page itself is referenced (in view mode, not in edit mode) — so you're not being redirected to login (if not logged in). I'm not using Gitea myself, but it looks to me that you'd keep that private most of the times. What do think it preferred /good practice: link to the page in edit mode or in view mode? |
Beta Was this translation helpful? Give feedback.
-
We're on gitlab here, I'll try to adapt it using the syntax you're suggesting @h-enk ! much appreciated. thank for raising this topic @OCram85 |
Beta Was this translation helpful? Give feedback.
-
I noticed the
editPage
function with itsedit-page.html
partial.If there is any need for, I would implement different config & partials for different provider.
EditPage would be replaced by:
EditGithub.html
->"{{ .Site.Params.docsRepo }}/blob/master/content/{{replace .File.Path "\\" "/" }}"
EditGitea.html
->"{{ .Site.Params.docsRepo }}/_edit/master/content/{{replace .File.Path "\\" "/"}}"
EditGitlab.html
-> ❓ ❔Beta Was this translation helpful? Give feedback.
All reactions