changes to message template..
nergen pusher@nergen.net
Sat, 22 Jun 2024 12:05:49 +0200
1 files changed,
13 insertions(+),
14 deletions(-)
jump to
M
templates/guestbook-body.gohtml
→
templates/guestbook-body.gohtml
@@ -1,15 +1,14 @@
-{{ define "guestbookbody" }} - <section id="rendered-posts"> - {{ range . }} - {{ block "rendered-post" .}} - <div class="rendered-post"> - <div class="rendered-post__date">{{ .Stamp.Format "Jan 02, 2006" }}</div> - <div class="rendered-post__id"><a href="#">#{{ .ID }}</a></div> - - <div class=rendered-post__content>{{ .Msg | safeHTML }}</div> +{{ 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 }} - </section> -{{ end }} - + {{- end -}} + {{- end }} +</div> +{{- end }}