From b0e51b0a477390f8889c3f9bc7a566f2ce2bf09c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kriszti=C3=A1n=20N=C3=A9meth?= Date: Thu, 22 Jun 2023 21:43:02 +0200 Subject: [PATCH] Using sectioning elements instead of default div --- Lombiq.BaseTheme/Views/Layout.cshtml | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/Lombiq.BaseTheme/Views/Layout.cshtml b/Lombiq.BaseTheme/Views/Layout.cshtml index b2b40d1..6109063 100644 --- a/Lombiq.BaseTheme/Views/Layout.cshtml +++ b/Lombiq.BaseTheme/Views/Layout.cshtml @@ -23,28 +23,31 @@ page: this, new[] { - new ZoneDescriptor(Header, wrapBody: true) + new ZoneDescriptor(Header, wrapBody: true, elementName: "header") { - ChildrenBefore = new [] { new ZoneDescriptor("Banner") }, + ChildrenBefore = new [] { new ZoneDescriptor("Banner", elementName: "section") }, + ChildrenAfter = new [] + { + new ZoneDescriptor(Navigation, elementName: "nav"), + }, }, - new ZoneDescriptor(Navigation, "nav"), - new ZoneDescriptor(BeforeMain), - new ZoneDescriptor(Featured), - new ZoneDescriptor(Content, wrapBody: true) + new ZoneDescriptor(BeforeMain, elementName: "section"), + new ZoneDescriptor(Featured, elementName: "section"), + new ZoneDescriptor(Content, wrapBody: true, elementName: "section") { ChildrenBefore = new [] { - new ZoneDescriptor(AsideFirst), - new ZoneDescriptor(Messages), - new ZoneDescriptor(BeforeContent), + new ZoneDescriptor(AsideFirst, elementName: "aside"), + new ZoneDescriptor(Messages, elementName: "section"), + new ZoneDescriptor(BeforeContent, elementName: "section"), }, ChildrenAfter = new [] { - new ZoneDescriptor(AfterContent), - new ZoneDescriptor(AsideSecond), + new ZoneDescriptor(AfterContent, elementName: "section"), + new ZoneDescriptor(AsideSecond, elementName: "aside"), }, }, - new ZoneDescriptor(AfterMain), + new ZoneDescriptor(AfterMain, elementName: "section"), new ZoneDescriptor(Footer, "footer"), })