Refactor server and templates package
This commit is contained in:
parent
b6bf0a8900
commit
6ede99d7c6
105 changed files with 341 additions and 339 deletions
18
internal/dis/component/server/news/news.html
Normal file
18
internal/dis/component/server/news/news.html
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{{ template "_base.html" . }}
|
||||
{{ define "title" }}News{{ end }}
|
||||
|
||||
{{ define "content" }}
|
||||
|
||||
<div class="pure-u-1">
|
||||
This page contains news items from the distillery.
|
||||
</div>
|
||||
|
||||
{{range .Items}}
|
||||
<div class="pure-u-1">
|
||||
<h2 id="{{.ID}}">{{.Title}}</h3>
|
||||
<b>{{ .Date.Format "2006-01-02" }}</b>
|
||||
{{ .Content }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
{{ end }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue