There is no mainSection
variable in Hugo.
Perhaps that is a custom variable that the theme author has created. Your question is theme specific.
I suggest that you ask directly in the theme repo.
Also please have a look at the forum Requesting Help guidelines.