<%= yield_content "header" %> <% if env.get?("preferences").try &.as(Preferences).dark_mode %> <% else %> <% end %> <% locale = LOCALES[env.get("locale").as(String)]? %>
<%= content %>