diff options
author | Laria Carolin Chabowski <laria@laria.me> | 2017-10-14 16:04:26 +0200 |
---|---|---|
committer | Laria Carolin Chabowski <laria@laria.me> | 2017-10-14 20:58:18 +0200 |
commit | 369d2c3e395903f6aff1d1869a81290d8bc994fa (patch) | |
tree | 4c3629906ebbfc8833af10c8f963f23619ecf00c /data/templates/project.html | |
download | code.laria.me-369d2c3e395903f6aff1d1869a81290d8bc994fa.tar.gz code.laria.me-369d2c3e395903f6aff1d1869a81290d8bc994fa.tar.bz2 code.laria.me-369d2c3e395903f6aff1d1869a81290d8bc994fa.zip |
Initial commit
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}} |