Mark front page announcements as <aside> elements

This matches the HTML used on the rest of the site. It helps avoid
search engines treating the aside as the primary content of the web
page.
This commit is contained in:
Tim Bannister
2020-06-24 22:35:00 +01:00
parent b754da8df7
commit 6a94d9838b
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
{{ if .Page.Param "announcement" }}
<section lang="en" id="fp-announcement" style="background-color:{{ .Page.Param "announcement_bg" }}">
<main>
<aside>
<div class="content announcement main-section">
<h3>
@@ -9,6 +9,6 @@
<p>{{ T "announcement_message" | markdownify }}</p>
</div>
</main>
</aside>
</section>
{{ end }}
+1 -1
View File
@@ -33,7 +33,7 @@
min-height: 30vh;
}
#fp-announcement main {
#fp-announcement aside {
padding-top: 125px;
padding-bottom: 35px;
}