{{ 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 }}