Update handling of news
This commit is contained in:
parent
73d821e320
commit
dcd5f910ae
22 changed files with 587 additions and 61 deletions
25
internal/dis/component/control/news/news.html
Normal file
25
internal/dis/component/control/news/news.html
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{{ template "_base.html" . }}
|
||||
{{ define "title" }}News{{ end }}
|
||||
|
||||
{{ define "header"}}
|
||||
<p>
|
||||
<a class="pure-button" href="/">Home</a> >
|
||||
<a class="pure-button pure-button-primary" href="/news/">News</a>
|
||||
</p>
|
||||
{{ 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