Skip to content

Commit

Permalink
Use if instead of range for message field
Browse files Browse the repository at this point in the history
  • Loading branch information
181192 committed Feb 26, 2021
1 parent f2fe1f6 commit f204095
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions www/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
</head>
<body>
<h1>{{ .Code }} - {{ .Title }}</h1>
{{- range .Message }}
<p class="zoom-area">{{ . }}</p>
{{- if .Message }}
<p class="zoom-area">{{ .Message }}</p>
{{- end }}
<section class="error-container">
<span><span>{{ slice .Code 0 1 }}</span></span>
Expand Down

0 comments on commit f204095

Please sign in to comment.