Mark announcements nosnippet
Add special metadata that Google Search pays attention to, so that the search engine ignores the <aside> element contents for announcements.
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user