<div>
  <p>
    {{ 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>
  </p>
  {{ with .Params.read }}
    <p>Started reading on <time class="dt-published" datetime="{{ .start.Format "2006-01-02T15:04:05Z07:00" }}">{{ .start.Format "January 2, 2006" }}</time></p>
    {{ if .end }}<p>{{ 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 }}</p>{{ end }}
  {{ end }}
  <p>{{ if .Content }}<a href="{{ .Permalink }}">My notes on {{ title .Title }}</a>{{ end }}</p>
</div>

<div>
  <p>
    {{ 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>
  </p>
  {{ with .Params.read }}
    <p>Started reading on <time class="dt-published" datetime="{{ .start.Format "2006-01-02T15:04:05Z07:00" }}">{{ .start.Format "January 2, 2006" }}</time></p>
    {{ if .end }}
      <p>{{ 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 }}</p>
      {{ $delta := .end.Sub .start }}
      <p>Completed in {{ math.Floor ( div $delta.Hours 24 ) }} days</p>
    {{ end }}
  {{ end }}
  <p>{{ if .Content }}<a href="{{ .Permalink }}">My notes on {{ title .Title }}</a>{{ end }}</p>
</div>

Add completed in time for books
Add completed in time for books
