<dt>
  {{ with .Params.read }}
    {{ if not .end }}📖{{ end }}
    {{ if .end }}{{ if not .gaveup }}📚{{ end }}{{ end }}
    {{ if .gaveup }}📕{{ end }}
  {{ end }}
  {{ if .Content }}✏️{{ end }}
  "<em>{{ title .Title }}{{ if .Params.subtitle }}: {{ .Params.subtitle }}{{ end }}" by {{ .Params.author }}</em>
</dt>
{{ with .Params.read }}
  <dd>Started reading on <time class="dt-published" datetime="{{ .start.Format "2006-01-02T15:04:05Z07:00" }}">{{ .start.Format "January 2, 2006" }}</time></dd>
  {{ if .end }}
    <dd>{{ if gt .gaveup 0 }}Gave up reading{{ else }}Finished the book{{ end }} on <time class="dt-published" datetime="{{ .end.Format "2006-01-02T15:04:05Z07:00" }}">{{ .end.Format "January 2, 2006" }}</time>{{ if gt .gaveup 0 }}, after {{ .gaveup }} pages{{ end }}</dd>
    {{ $delta := .end.Sub .start }}
    <dd>Completed in {{ math.Floor ( div $delta.Hours 24 ) }} days</dd>
  {{ end }}
{{ end }}
{{ if .Content }}<dd><a href="{{ .Permalink }}">My notes on {{ title .Title }}</a></dd>{{ end }}

<dt>
  {{ with .Params.read }}
    {{ if not .end }}📖{{ end }}
    {{ if .end }}{{ if not .gaveup }}📚{{ end }}{{ end }}
    {{ if .gaveup }}📕{{ end }}
  {{ end }}
  {{ if .Content }}✏️{{ end }}
  "<em>{{ title .Title }}{{ if .Params.subtitle }}: {{ .Params.subtitle }}{{ end }}" by {{ .Params.author }}</em>
</dt>
{{ with .Params.read }}
  <dd>Started reading on <time class="dt-published" datetime="{{ .start.Format "2006-01-02T15:04:05Z07:00" }}">{{ .start.Format "January 2, 2006" }}</time></dd>
  {{ if .end }}
    <dd>{{ if gt .gaveup 0 }}Gave up reading{{ else }}Finished the book{{ end }} on <time class="dt-published" datetime="{{ .end.Format "2006-01-02T15:04:05Z07:00" }}">{{ .end.Format "January 2, 2006" }}</time>{{ if gt .gaveup 0 }}, after {{ .gaveup }} pages{{ end }}</dd>
    {{ $delta := .end.Sub .start }}
    <dd>Completed in {{ math.Round ( div $delta.Hours 24 ) }} days</dd>
  {{ end }}
{{ end }}
{{ if .Content }}<dd><a href="{{ .Permalink }}">My notes on {{ title .Title }}</a></dd>{{ end }}

Fix rounding error in books
Fix rounding error in books

I am using math floor instead of a true round, so what can happen, and
what did happen in this case, was that if the number is 1.9, it will go
to 1 instead of 2.
