29318d12f0
Build & Deploy / build (push) Has been cancelled
strings.Replace takes its input as the FIRST argument, so piping into it appended the cell value as the last argument instead: the call evaluated as strings.Replace "\n" "<br>" .date, which returned a bare newline. Rows rendered with the correct count but no content. Pass the value explicitly instead. All 25 rows now render, with line breaks and the inline link in the 2020 entry preserved. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
15 lines
588 B
HTML
15 lines
588 B
HTML
{{- /* Context: a slice of {date, description} rows from data/termine.yaml.
|
|
Cells may contain newlines (rendered as line breaks) and inline HTML. */ -}}
|
|
<table class="termine">
|
|
<tbody>
|
|
{{ range . }}
|
|
<tr>
|
|
{{/* Note: strings.Replace takes the input FIRST, so it must not be piped
|
|
into -- a pipeline would append the value as the last argument. */}}
|
|
<th scope="row">{{ strings.Replace .date "\n" "<br>" | safeHTML }}</th>
|
|
<td>{{ strings.Replace .description "\n" "<br>" | safeHTML }}</td>
|
|
</tr>
|
|
{{ end }}
|
|
</tbody>
|
|
</table>
|