NGSchoolEU / website

https://ngschool.eu
1 stars 0 forks source link

Restructure the site map #90

Closed kzkedzierska closed 2 years ago

kzkedzierska commented 2 years ago

Clean up the menu section so it has more space to add NGSchool Award and Donate pages when we will need them soon & make access to current events faster.

kzkedzierska commented 2 years ago

if we add a parameters to main.menu fields in config.toml like section = true we can test conditions in themes/airspace-hugo/layouts/partials/header.html file add something like this:

{{ if .HasChildren }}   
{{ if .Params.section }}   
  print without link; 
  {{ range .Children }}  
     <li><a href="{{ .URL | relLangURL }}">{{ .Name }}</a></li> 
   {{ end }} ... 
{{ else }} 
that what is now for just if HasChildren

also we would probably have with .Params.section or write it so it evaluates to bool. But that's above my pay grade...

kzkedzierska commented 2 years ago

the simpler, less elegant solution, if we agree that it is worth to restructure site map, would be to just do NGSchool2019, NGSchool2018, ..., NGSymposium2020, NGSeminars2020, ... children of Other projects and not have section headers in the menu

anamariaelek commented 2 years ago

Here it is c576a2f

P.S. Donate page just points to bank account for now.

kzkedzierska commented 2 years ago

Fantastic, thank you @anamariaelek :)