Skip to content

Commit

Permalink
Fix text wrapping on Gregorian dates
Browse files Browse the repository at this point in the history
  • Loading branch information
mjradwin committed Aug 5, 2024
1 parent ededdc1 commit 80eb8d4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions views/partials/holiday-index-dates.ejs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<time class="fw-bolder text-nowrap" datetime="<%=item.startIsoDate%>"><%= item.d.format(isHebrewYear ? 'ddd, D MMM YYYY' : 'ddd, D MMMM') %></time> <small><%=item.beginsWhen.replace(/^at /, '').replace('sundown', 'sunset')%></small> -
<% if (item.duration > 0) { -%>
<time class="fw-bolder text-nowrap" datetime="<%=item.startIsoDate%>"><%= item.endD.format(isHebrewYear ? 'ddd, D MMM YYYY' : 'ddd, D MMMM') %></time>
<% } %> <small>nightfall</small>
<span class="text-nowrap"><time class="fw-bolder" datetime="<%=item.startIsoDate%>"><%= item.d.format(isHebrewYear ? 'ddd, D MMM YYYY' : 'ddd, D MMMM') %></time> <small><%=item.beginsWhen.replace(/^at /, '').replace('sundown', 'sunset')%></small></span> -
<span class="text-nowrap"><% if (item.duration > 0) { -%>
<time class="fw-bolder" datetime="<%=item.startIsoDate%>"><%= item.endD.format(isHebrewYear ? 'ddd, D MMM YYYY' : 'ddd, D MMMM') %></time>
<% } %> <small>nightfall</small></span>

0 comments on commit 80eb8d4

Please sign in to comment.