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
parent
6a94d9838b
commit
8fcfbe692b
|
@ -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 }}
|
||||
|
|
|
@ -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 }}
|
||||
|
|
Loading…
Reference in New Issue