Skip to content

Commit

Permalink
Add the date content attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
waferbaby committed Feb 17, 2024
1 parent 20ee256 commit 2987eb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/post.erb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ layout: default
<h2 class="p-name" itemprop="headline"><%= @page.title %></h2>
<p class="summary p-job-title"><%= @page.summary %></p>
<p class="details">
<time datetime="<%= @page.date.strftime('%Y-%m-%d') %>" class="dt-published" itemprop="datePublished"><%= @page.date.strftime('%B %d, %Y') %></time> in
<time datetime="<%= @page.date.strftime('%Y-%m-%d') %>" class="dt-published" itemprop="datePublished" content="<%= @page.date.strftime('%Y-%m-%d') %>"><%= @page.date.strftime('%B %d, %Y') %></time> in
<% @page.categories.each do |slug| %>
<a href="/categories/<%= slug %>/" title="All the <%= slug %> interviews." class="p-category"><%= slug %></a><%= ', ' unless @page.categories.last == slug %>
<% end %>
Expand Down

0 comments on commit 2987eb8

Please sign in to comment.