Style navigation a bit

This commit is contained in:
Charlotte Van Petegem 2025-05-23 17:11:53 +02:00
parent 32557190bd
commit fbcea15e35
Signed by: chvp
SSH key fingerprint: SHA256:s9rb8jBVfdahqWHuBAcHCBP1wmj4eYQXZfqgz4H3E9E
3 changed files with 29 additions and 4 deletions

View file

@ -1,7 +1,9 @@
<% content_for(:header) do %>
<% @sections.each do |section| %>
<%= link_to section.title, section_url(section) %>
<% end %>
<div class="section-links">
<% @sections.each do |section| %>
<%= link_to section.title, section_url(section), html_options = { class: { "section-link": true, "section-link-active": current_page?(section_url(section)) } } %>
<% end %>
</div>
<% end %>
<h4><%= @section.title %></h4>