1
0
mirror of https://github.com/mattermost/focalboard.git synced 2025-07-15 23:54:29 +02:00

enabled edit link in documentation pages

- updated GH Repo URL to match the GH edit URL format/template
- updated edit-page partial
This commit is contained in:
Rakesh Peela
2021-03-28 16:52:58 +05:30
parent e7d93ef941
commit ba592223f8
4 changed files with 32 additions and 32 deletions

View File

@ -17,7 +17,7 @@ pygmentsStyle = "manni"
author = "" author = ""
description = "" description = ""
email = "" email = ""
ghrepo = "https://github.com/mattermost/focalboard/tree/main/website" ghrepo = "https://github.com/mattermost/focalboard/"
[params.mailinglist] [params.mailinglist]
enable = false enable = false

View File

@ -8,22 +8,20 @@
<head> <head>
{{ partial "head.html" .}} {{ partial "head.html" .}}
</head> </head>
<body> <body>
{{ partial "nav2.html" .}} {{ partial "nav2.html" .}}
<div id="wrapper"> <div id="wrapper">
<div class="container-fluid"> <div class="container-fluid">
<div class="row"> <div class="row">
{{ partial "sidebar.html" .}} {{ partial "sidebar.html" .}}
<div class="col-lg-9 doc-content"> <div class="col-lg-9 doc-content">
<!-- {{ partial "page-edit.html" . }} --> {{ partial "page-edit.html" . }}
<h1 class="mt-0 doc-title"> <h1 class="mt-0 doc-title">{{ .Title }}</h1>
{{ .Title }} {{ partial "hanchor.html" .Content }}
</h1> </div>
{{ partial "hanchor.html" .Content }}
</div> </div>
</div> </div>
</div> </div>
</div> {{ partial "footer.html" .}}
{{ partial "footer.html" .}} </body>
</body>
</html> </html>

View File

@ -8,22 +8,20 @@
<head> <head>
{{ partial "head.html" .}} {{ partial "head.html" .}}
</head> </head>
<body> <body>
{{ partial "nav2.html" .}} {{ partial "nav2.html" .}}
<div id="wrapper"> <div id="wrapper">
<div class="container-fluid"> <div class="container-fluid">
<div class="row"> <div class="row">
{{ partial "sidebar.html" .}} {{ partial "sidebar.html" .}}
<div class="col-lg-9 doc-content"> <div class="col-lg-9 doc-content">
<!-- {{ partial "page-edit.html" . }} --> {{ partial "page-edit.html" . }}
<h1 class="mt-0 doc-title"> <h1 class="mt-0 doc-title">{{ .Title }}</h1>
{{ .Title }} {{ partial "hanchor.html" .Content }}
</h1> </div>
{{ partial "hanchor.html" .Content }}
</div> </div>
</div> </div>
</div> </div>
</div> {{ partial "footer.html" .}}
{{ partial "footer.html" .}} </body>
</body>
</html> </html>

View File

@ -1,5 +1,9 @@
{{ if .File }} {{ if .File }}
<a href="{{.Site.Params.ghrepo}}edit/master/site/content/{{ .File.Path }}" class="float-right edit-github"> <a
href="{{.Site.Params.ghrepo}}edit/main/website/site/content/{{ .File.Path }}"
class="float-right edit-github"
target="_blank"
>
Edit on GitHub Edit on GitHub
</a> </a>
{{ end }} {{ end }}