Skip to content

Commit 6a94d98

Browse files
author
Tim Bannister
committed
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.
1 parent b754da8 commit 6a94d98

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{ if .Page.Param "announcement" }}
22
<section lang="en" id="fp-announcement" style="background-color:{{ .Page.Param "announcement_bg" }}">
3-
<main>
3+
<aside>
44
<div class="content announcement main-section">
55

66
<h3>
@@ -9,6 +9,6 @@ <h3>
99
<p>{{ T "announcement_message" | markdownify }}</p>
1010

1111
</div>
12-
</main>
12+
</aside>
1313
</section>
1414
{{ end }}

static/css/announcement.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
min-height: 30vh;
3434
}
3535

36-
#fp-announcement main {
36+
#fp-announcement aside {
3737
padding-top: 125px;
3838
padding-bottom: 35px;
3939
}

0 commit comments

Comments
 (0)