<%= vite_client_tag %> <%= vite_javascript_tag 'portal' %> <%= csrf_meta_tags %> <% if content_for?(:head) %> <%= yield(:head) %> <% else %> <%= @portal.display_title(@locale) %> <% end %> <% if @portal.logo.present? %> <% end %> <% unless @theme_from_params.blank? %> <%# this adds the theme from params, ensuring that there a localstorage value set %> <%# this will further trigger the next script to ensure color mode is toggled without a FOUC %> <% end %>