diff options
Diffstat (limited to 'data/templates/project.html')
-rw-r--r-- | data/templates/project.html | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/data/templates/project.html b/data/templates/project.html new file mode 100644 index 0000000..cb5ad5d --- /dev/null +++ b/data/templates/project.html @@ -0,0 +1,22 @@ +{{define "content"}} + <h2>{{.Title}}</h2> + <p class="description">{{.Description}}</p> + <h3 class="sr-only">Links</h3> + <ul class="links"> + {{range .Links}} + <li class="{{.Class}}"><a href="{{.Href}}">{{.Title}}</a></li> + {{end}} + </ul> + <h3 class="sr-only">Tags</h3> + <ul class="tags">{{range .Tags}}<li class=""><a href="/tags/{{.}}" rel="tag">{{.}}</a></li>{{end}}</ul> + {{if .GoGet}} + <p class="goget"> + This project is <code>go get</code>-able: <code>go get code.laria.me/{{.Name}}</code> + </p> + {{end}} + {{if .License}}<p class="license">License: {{.License}}</p>{{end}} + {{if .FormattedReadme}} + <h3>Readme</h3> + <section id="readme">{{.FormattedReadme}}</section> + {{end}} +{{end}} |