| detail.html - staticgit - A git static site generator in GO with HTML output! | |
| git clone git://jay.scot/staticgit | |
| Log | |
| Files | |
| Refs | |
| README | |
| --- | |
| detail.html (575B) | |
| --- | |
| 1 {{define "content"}} | |
| 2 <pre>{{.ReadmeContent}}</pre> | |
| 3 | |
| 4 <h2>Commit History</h2> | |
| 5 <table> | |
| 6 <thead> | |
| 7 <tr> | |
| 8 <th>Date</th> | |
| 9 <th>Message</th> | |
| 10 <th>Author</th> | |
| 11 <th>Hash</th> | |
| 12 <th>Added</th> | |
| 13 <th>Deleted</th> | |
| 14 </tr> | |
| 15 </thead> | |
| 16 <tbody> | |
| 17 {{range .Commits}} | |
| 18 <tr> | |
| 19 <td>{{.Date}}</td> | |
| 20 <td>{{.Msg}}</td> | |
| 21 <td>{{.Author}}</td> | |
| 22 <td>{{.Hash}}</td> | |
| 23 <td>+{{.Added}}</td> | |
| 24 <td>-{{.Removed}}</td> | |
| 25 </tr> | |
| 26 {{end}} | |
| 27 </tbody> | |
| 28 </table> | |
| 29 | |
| 30 <h2>Files</h2> | |
| 31 <ul> | |
| 32 {{range .Files}} | |
| 33 <li>{{.}}</li> | |
| 34 {{end}} | |
| 35 </ul> | |
| 36 {{end}} |