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" }}
|
{{ if .Page.Param "announcement" }}
|
||||||
<section lang="en" id="announcement" style="background-color:{{ .Page.Param "announcement_bg" }}">
|
<section lang="en" id="announcement" style="background-color:{{ .Page.Param "announcement_bg" }}">
|
||||||
<aside>
|
<aside>
|
||||||
<div class="content announcement main-section">
|
<div class="content announcement main-section" data-nosnippet>
|
||||||
|
|
||||||
<h4 class="announcement">
|
<h4 class="announcement">
|
||||||
{{ T "announcement_title" | markdownify }}
|
{{ T "announcement_title" | markdownify }}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{{ if .Page.Param "announcement" }}
|
{{ if .Page.Param "announcement" }}
|
||||||
<section lang="en" id="fp-announcement" style="background-color:{{ .Page.Param "announcement_bg" }}">
|
<section lang="en" id="fp-announcement" style="background-color:{{ .Page.Param "announcement_bg" }}">
|
||||||
<aside>
|
<aside >
|
||||||
<div class="content announcement main-section">
|
<div class="content announcement main-section" data-nosnippet>
|
||||||
|
|
||||||
<h3>
|
<h3>
|
||||||
{{ T "announcement_title" | markdownify }}
|
{{ T "announcement_title" | markdownify }}
|
||||||
|
|||||||
Reference in New Issue
Block a user