Simple news implementation
Is missing some proper design and to show up the news on the front page.
This commit is contained in:
parent
bf0480868d
commit
5f612a36ad
8 changed files with 101 additions and 1 deletions
10
templates/news.html
Normal file
10
templates/news.html
Normal file
|
@ -0,0 +1,10 @@
|
|||
{{template "header.html" .S}}
|
||||
|
||||
<dl class="dl-horizontal">
|
||||
{{range .News}}
|
||||
<dt>{{.Date}}</dt>
|
||||
<dd>{{.Text}}</dd>
|
||||
{{end}}
|
||||
</dl>
|
||||
|
||||
{{template "footer.html"}}
|
Reference in a new issue