all repos — elgit @ effa6151ae97398a7adcbf0b74f04ba5f800be42

fork of legit: web frontend for git, written in go

render markdown files in file viewer

Alan Pearce
commit

effa6151ae97398a7adcbf0b74f04ba5f800be42

parent

4cb034adf2fd34dbaeae280c30d88601865dc7d8

1 file changed, 20 insertions(+), 19 deletions(-)

changed files
M templates/page.gotemplates/page.go
@@ -12,25 +12,26 @@ . "alin.ovh/gomponents/html"
) type PageData struct { - Meta config.Meta - DisplayName string - Name string - Ref string - Readme string - Description string - Path string - Parent string - Files any - Diff []git.Diff - Stat git.Stat - Commit *git.Commit - Commits []*git.Commit - LineCount []int - Content string - Branches any - Log bool - Servername string - Gomod bool + Meta config.Meta + DisplayName string + Name string + Ref string + Readme string + Description string + Path string + Parent string + Files any + Diff []git.Diff + Stat git.Stat + Commit *git.Commit + Commits []*git.Commit + LineCount []int + Content string + RenderedContent string + Branches any + Log bool + Servername string + Gomod bool } func RenderHead(data PageData) []g.Node {