Mark announcements nosnippet

Add special metadata that Google Search pays attention to, so that the
search engine ignores the <aside> element contents for announcements.
pull/22047/head
Tim Bannister 2020-06-26 21:20:16 +01:00
parent 6a94d9838b
commit 8fcfbe692b
2 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
{{ if .Page.Param "announcement" }}
<section lang="en" id="announcement" style="background-color:{{ .Page.Param "announcement_bg" }}">
<aside>
<div class="content announcement main-section">
<div class="content announcement main-section" data-nosnippet>
<h4 class="announcement">
{{ T "announcement_title" | markdownify }}

View File

@ -1,7 +1,7 @@
{{ if .Page.Param "announcement" }}
<section lang="en" id="fp-announcement" style="background-color:{{ .Page.Param "announcement_bg" }}">
<aside>
<div class="content announcement main-section">
<aside >
<div class="content announcement main-section" data-nosnippet>
<h3>
{{ T "announcement_title" | markdownify }}