Files
website/layouts/partials/frontpage-announcement.html
Tim Bannister 8fcfbe692b Mark announcements nosnippet
Add special metadata that Google Search pays attention to, so that the
search engine ignores the <aside> element contents for announcements.
2020-06-26 21:20:16 +01:00

14 lines
395 B
HTML

{{ if .Page.Param "announcement" }}
<section lang="en" id="fp-announcement" style="background-color:{{ .Page.Param "announcement_bg" }}">
<aside >
<div class="content announcement main-section" data-nosnippet>
<h3>
{{ T "announcement_title" | markdownify }}
</h3>
<p>{{ T "announcement_message" | markdownify }}</p>
</div>
</aside>
</section>
{{ end }}