internal/web/templates/wiki.html

f5294b9a1ea2e1f0dc061f05d0ec1968d39d8e6d
gitbay/internal/web/templates/wiki.html

21 lines · 826 bytes

 1{{define "title"}}wiki{{if .Page}}: {{.Page}}{{end}} · {{.Repo.OwnerName}}/{{.Repo.Name}}{{end}}
 2{{define "content"}}
 3<h1 class="vh">Wiki{{if .Page}}: {{.Page}}{{end}}</h1>
 4{{if .Missing}}<p class="empty-note">no wiki yet — add pages under <code>.gitbay/wiki/</code> on the default branch:<br>
 5push <code>.gitbay/wiki/Home.md</code> (or .org).</p>
 6{{else}}
 7<div class="wikilayout">
 8<div class="wikipage">
 9<section class="readme">
10<div class="cardhead">{{.Page}}</div>
11<div class="rendered">{{.PageHTML}}</div>
12</section>
13</div>
14<nav class="wikinav">
15<p class="meta">pages</p>
16<ul>{{range .Pages}}<li><a {{if eq . $.Page}}class="active" {{end}}href="/{{$.Repo.OwnerName}}/{{$.Repo.Name}}/wiki/{{.}}">{{.}}</a></li>{{end}}</ul>
17<p class="meta">edit under <code>.gitbay/wiki/</code> by push.</p>
18</nav>
19</div>
20{{end}}
21{{end}}
Keyboard shortcuts

Global

⌘K
Command palette & jump
/
Focus search
?
Show this help
g d
Dashboard
g e
Explore repositories
g n
Notifications

Repository & editor

t
Find file in repository
y
Copy immutable SHA permalink
g c
Code tab
g i
Issues tab
g m
Merge requests tab
g b
Builds tab
⌘↵
Submit active form