Closed kzkedzierska closed 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...
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
Here it is c576a2f
P.S. Donate page just points to bank account for now.
Fantastic, thank you @anamariaelek :)
Clean up the menu section so it has more space to add
NGSchool Award
andDonate
pages when we will need them soon & make access to current events faster.Other projects
People
,Photos
andAbout us
under one section titledAbout us
and at the same time change the name ofAbout us
page toOur mission
or similar.