]> gitweb.mndrdr.org Git - arelpe.git/commitdiff
Fixed valentine message presence every day
authorAidan Cornelius-Bell <[email protected]>
Fri, 10 Jan 2025 03:40:58 +0000 (14:10 +1030)
committerAidan Cornelius-Bell <[email protected]>
Fri, 10 Jan 2025 03:40:58 +0000 (14:10 +1030)
app/views/pubview/index.html.erb

index baf225521a44970a5a485947b4fc626fa1eae5df..ada59d27ff693d530b4d7fe49b2fe4561be7e493 100644 (file)
@@ -2,7 +2,7 @@
   <%= link_to root_path do %>
        <%= image_tag "icon-512.png", class: "logo", alt: "mind reader logo" %>
   <% end %>
-  <h1 class="header">mind reader <% if [Time.current.strftime("%-d/%-m")] & ["9/1", "8/2", "14/2", "12/4"] %><small id="valentine">acb&#10086;pab</small><% end %></h1>
+  <h1 class="header">mind reader <% if ["9/1", "8/2", "14/2", "12/4"].include?(Time.current.strftime("%-d/%-m")) %><small id="valentine">acb&#10086;pab</small><% end %></h1>
   <p class="subheading"><small>An anti-capitalist blog of dispatches and links from Aidan Cornelius-Bell</small></p>
 </div>