{{ partial "head.html" . }} {{ $date := .Site.Data.summary.last_updated }} {{ if isset .Params "date" }} {{ $date = .Params.date }} {{ end }} {{ $data := index .Site.Data.summary (dateFormat "2006-01-02" $date) }}
{{ if eq .Params.layout "time-machine" }}
{{ if ne (dateFormat "2006-01-02" $date) .Site.Data.summary.last_updated }} Below is the homepage as it would have appeared on {{ dateFormat "January 2, 2006" $date }}. Click here to return to current data. {{ else }} This page is a permanent link to the homepage with data as of {{ dateFormat "January 2, 2006" $date }}. Click here to go home. {{ end }}
{{ end }}
{{ if eq .Params.layout "time-machine" }}
{{ end }}