diff options
Diffstat (limited to 'views/index.html')
-rw-r--r-- | views/index.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/views/index.html b/views/index.html index 2bfed28..00ebfb9 100644 --- a/views/index.html +++ b/views/index.html @@ -28,9 +28,10 @@ {{ if .page.NewsItems }} <div class="newsbox" style="margin-top:50px;"> <h2><a href="/news">{{ .page.PreferredUsername }} News</a></h2> + {{ $page := .page }} {{ range $i, $e := .page.NewsItems }} <div class="newsbox-news"> - <h3><a href="/news/{{.Time}}">{{unixtoreadable $e.Time}} - {{$e.Title}}</a>{{ if $.Board.ModCred }} <a href="/{{ $.Key }}/newsdelete/{{ $e.Time }}">[Delete] </a>{{end}}</h3> + <h3><a href="/news/{{.Time}}">{{unixtoreadable $e.Time}} - {{$e.Title}}</a>{{ if $page.Board.ModCred }} <a href="/{{ $page.Key }}/newsdelete/{{ $e.Time }}">[Delete] </a>{{end}}</h3> <br> <p>{{$e.Content}}</p> |