!!!
%html
%head
%title words
%link{:rel => 'stylesheet', :href => '/style.css'}
%body
%h1
- if @prev[:date] == Date.today
%a.prev{:href => '/'} ←
- else
%a.prev{:href => @prev[:url]} ←
= @words[:date].strftime("%B %-d, %Y")
- if @next[:date] == Date.today
%a.next{:href => '/'} →
- else
%a.next{:href => @next[:url]} →
%a.home{:href => '/list'} ☰
- if @words[:date] > Date.today
.content.empty [the future hasn't been written yet]
- elsif @words[:text].empty?
.content.empty [this page left intentionally blank]
- else
.content= @words[:text]
.padding