Authentication-Results: mail-b.sr.ht; dkim=pass header.d=alyssa.is header.i=@alyssa.is; dkim=pass header.d=messagingengine.com header.i=@messagingengine.com Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by mail-b.sr.ht (Postfix) with ESMTPS id 2BA1A11EF40 for <~qaul/community@lists.sr.ht>; Fri, 26 Feb 2021 13:50:54 +0000 (UTC) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 1C4905C013B; Fri, 26 Feb 2021 08:50:54 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Fri, 26 Feb 2021 08:50:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alyssa.is; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm2; bh=V3wkdZirr6qse kfcL0eZEts0rUTPP3ekrg4ZjaZf87U=; b=CcGikyY3QF+c3mBtmTSeeSWz/qSFw LahJOdqLLtK0+fteEFLwoWT/OjDbGNb+dgE873EWsFMdyHJ0oKrSxtiL61Zhaebe g1qVc1LHH+d2VEbgH4vYjmFc9gKGsiNAEa6kj6I6bfPvntPzgMTswprVFcl35Tq+ KUOAoZP/V5qGhlfeqB5dUCS8MLyO8MCNmSGO9q71N3FUanWJoDTrdRvOePtTxHho mz6a9rb9lT7VnPZqC0ic5a6HdvXuC1LcKHdNAD4JZXah5zhSv1p992cWgz0iTU7l QmViw1qp2cHiANNRhtFS4/AbB0uISrg8cgQ7q4VxUnybgViJFg03lCeWA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=V3wkdZirr6qsekfcL0eZEts0rUTPP3ekrg4ZjaZf87U=; b=v/L64OtL jcfze8zpOuQR4PNBcc5CtYbClWOv3L5kqQ1EWoeImSXNumfxrXtxFq4ZY+vM1FOt bjR6/TJR/oGz5a79gI93874cdq4ZQFoayT2neYGVcYGWugarRzmH5lEYHrXmvt7m VRpKfhzjQigxe2iqnWROULwweh6ifkkYuPpO9AmW/vT50LW+zdcxzT7Dx80rDKIR kUhozGJOa10GdQtDjuzeVHXhcElZqs614+GWkrgARV6tah939Pb1L+sVdljpvrX4 9lmd4DpsocxKVbG+oQgxr1H9BRg4V/tLy1lIRD8nRzKlppClnreiN5m8HEY9DYIf b7ZVuRjmPBdGjg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrledugdehkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffojghfggfgsedtkeertd ertddtnecuhfhrohhmpeetlhihshhsrgcutfhoshhsuceohhhisegrlhihshhsrgdrihhs qeenucggtffrrghtthgvrhhnpefgfedukedvleeileeludefveehgeelgfegvddujedvtd ffueeuveffheeljeekvdenucfkphepjeelrddvfeehrdduvddvrddugeehnecuvehluhhs thgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepqhihlhhishhssegvvh gvrdhqhihlihhsshdrnhgvth X-ME-Proxy: Received: from eve.qyliss.net (p4feb7a91.dip0.t-ipconnect.de [79.235.122.145]) by mail.messagingengine.com (Postfix) with ESMTPA id D1203240054; Fri, 26 Feb 2021 08:50:53 -0500 (EST) Received: by eve.qyliss.net (Postfix, from userid 1000) id CCF41EB7; Fri, 26 Feb 2021 13:50:52 +0000 (UTC) From: Alyssa Ross To: ~qaul/community@lists.sr.ht Cc: Katharina Fey Subject: [PATCH 1/3] docs/website: use semantic structure elements Date: Fri, 26 Feb 2021 13:50:44 +0000 Message-Id: <20210226135046.32283-2-hi@alyssa.is> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210226135046.32283-1-hi@alyssa.is> References: <20210226135046.32283-1-hi@alyssa.is> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit HTML has dedicated elements for lots of these kinds of things, so we can improve readability and semantic meaning by using those instead of divs. I changed the .header and .footer styles to body > header and body > footer, because I don't think it's worth having a special class that would just be identical to the element names, but we might want to have inner headers and footers at some point, so I think it's worth restricting to just ones that are direct body descendants. --- docs/website/layouts/index.html | 12 ++++++------ .../themes/qaul-theme/layouts/_default/baseof.html | 4 ++-- .../themes/qaul-theme/layouts/_default/learning.html | 4 ++-- .../themes/qaul-theme/layouts/_default/page.html | 4 ++-- .../themes/qaul-theme/layouts/partials/footer.html | 4 ++-- docs/website/themes/qaul-theme/static/css/qaul.css | 2 +- 6 files changed, 15 insertions(+), 15 deletions(-) diff --git a/docs/website/layouts/index.html b/docs/website/layouts/index.html index b6d488ef..ac49e189 100644 --- a/docs/website/layouts/index.html +++ b/docs/website/layouts/index.html @@ -12,7 +12,7 @@ {{ define "main" }} {{ with .Site.GetPage "home/intro" }} -
+
@@ -36,11 +36,11 @@
- + {{ end }} {{ with .Site.GetPage "home/about" }} -
+

{{ .Params.Introduction_Title }}

@@ -49,15 +49,15 @@

{{ .Params.Meshing_Title }}

{{ .Params.Meshing | markdownify }}
-
+ {{ end }} {{ with .Site.GetPage "home/contribute" }} -
+

{{ .Params.Contribute_Title }}

{{ .Params.Contribute | markdownify }}
-
+ {{ end }} {{ end }} diff --git a/docs/website/themes/qaul-theme/layouts/_default/baseof.html b/docs/website/themes/qaul-theme/layouts/_default/baseof.html index 0b930be1..a86827d0 100644 --- a/docs/website/themes/qaul-theme/layouts/_default/baseof.html +++ b/docs/website/themes/qaul-theme/layouts/_default/baseof.html @@ -3,7 +3,7 @@ {{- partial "head.html" . -}} {{- block "head-override" .}}{{- end }} -
+
-
+
{{- block "main" . }}{{- end }} diff --git a/docs/website/themes/qaul-theme/layouts/_default/learning.html b/docs/website/themes/qaul-theme/layouts/_default/learning.html index 0f8988a0..bccf7f09 100644 --- a/docs/website/themes/qaul-theme/layouts/_default/learning.html +++ b/docs/website/themes/qaul-theme/layouts/_default/learning.html @@ -1,5 +1,5 @@ {{ define "main" }} -
+

{{ .Title }}

@@ -14,5 +14,5 @@
- + {{ end }} diff --git a/docs/website/themes/qaul-theme/layouts/_default/page.html b/docs/website/themes/qaul-theme/layouts/_default/page.html index e63fd83b..b0a26109 100644 --- a/docs/website/themes/qaul-theme/layouts/_default/page.html +++ b/docs/website/themes/qaul-theme/layouts/_default/page.html @@ -1,9 +1,9 @@ {{ define "main" }} -
+

{{ .Title }}

{{ .Content }}
-
+ {{ end }} diff --git a/docs/website/themes/qaul-theme/layouts/partials/footer.html b/docs/website/themes/qaul-theme/layouts/partials/footer.html index a799c0a0..d537e14d 100644 --- a/docs/website/themes/qaul-theme/layouts/partials/footer.html +++ b/docs/website/themes/qaul-theme/layouts/partials/footer.html @@ -1,4 +1,4 @@ - + diff --git a/docs/website/themes/qaul-theme/static/css/qaul.css b/docs/website/themes/qaul-theme/static/css/qaul.css index b2f5d363..d225a20d 100644 --- a/docs/website/themes/qaul-theme/static/css/qaul.css +++ b/docs/website/themes/qaul-theme/static/css/qaul.css @@ -25,7 +25,7 @@ p,li { max-width: 100%; } -.header, .footer { +body > header, body > footer { display: flex; justify-content: center; padding: 2rem; -- 2.30.0