all repos — nergen.net-guestbook.git @ b3ec78973cdead35d2898552a677df544ec4ac18

Unnamed repository; edit this file 'description' to name the repository.

templates/guestbook-body.gohtml (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
{{ define "guestbookbody" -}}
<div id="rendered-posts" class="guestbook__table">
  {{ range . -}}
    {{- block "rendered-post" . -}}
    <div class="guestbook__post">
      <hr>
      <a class="guestbook__post--id" href=#>#{{ .ID }}</a>
      <time class="guestbook__post--date">{{ .Stamp.Format "060102" }}</time>
      <div class="guestbook__post--msg">{{ .Msg | safeHTML }}</div>
    </div>
    {{- end -}}
  {{- end }}
</div>
{{- end }}