{{range $i, $style := $config.Styles_img}} {{end}}
{{range $i, $boardlink := $board_arr}} /{{$boardlink.Dir}}/ {{end}}
{{$board.Title}}
{{$board.Subtitle}}

Name
Email
Subject
Message
File
Password (for post/file deletion)

{{range $t, $thread := $thread_arr}} {{$op := $thread.OP}}
{{if stringNeq $op.Filename ""}} {{if stringNeq $op.Filename "deleted"}}
File: {{$op.Filename}} - ({{formatFilesize $op.Filesize}} , {{$op.ImageW}}x{{$op.ImageH}}, {{$op.FilenameOriginal}})
{{else}}
File removed
{{end}} {{end}} No. {{$op.ID}} [] [View]
{{truncateMessage $op.MessageHTML 2222 18}}
{{if gt $thread.NumReplies 3}} {{subtract $thread.NumReplies 3}} post{{if gt $thread.NumReplies 4}}s{{end}} omitted {{end}}
{{range $reply_num,$reply := $thread.BoardReplies}}
No. {{$reply.ID}} []
{{if stringNeq $reply.Filename ""}}File: {{$reply.Filename}} - ({{formatFilesize $reply.Filesize}} , {{$reply.ImageW}}x{{$reply.ImageH}}, {{$reply.FilenameOriginal}})
{{end}} {{if stringNeq $reply.MessageHTML ""}}
{{$reply.MessageHTML}}
{{end}}
{{end}}

{{end}}

Reason:
{{if gt $board.CurrentPage 1}}
{{else if intEq $board.CurrentPage 1}}
{{else}}Previous{{end}}
[Index]{{range $i,$_ := makeLoop $board.NumPages}} [{{if eq $i $board.CurrentPage}}{{end}}{{add $i 1}}{{if eq $i $board.CurrentPage}}{{end}}]{{end}} {{if lt $board.CurrentPage $board.NumPages}}
{{else}}Next{{end}}
[{{range $i, $boardlink := $board_arr}} {{if gt $i 0}}/{{end}} {{$boardlink.Dir}} {{end}}]