新聞 Sitemap
如果您是新聞發布者,請使用新聞 Sitemap 告知 Google 您的新聞報導和其他相關資訊。您可以使用新聞專屬標記來擴充現有的 Sitemap,也可以另外建立保留給新聞報導使用的新聞 Sitemap。這兩種方式都適合 Google 的系統;不過,如果只為新聞報導另外建立一個 Sitemap,或許能透過 Search Console 更準確地追蹤搜尋結果中的內容。
新聞 Sitemap 最佳做法
新聞 Sitemap 是以通用 Sitemap 為基礎,因此新聞 Sitemap 也適用一般 Sitemap 最佳做法。
發布新的報導後,請更新您的新聞 Sitemap。請不要每次更新都建立新的 Sitemap。Google 新聞檢索新聞 Sitemap 的頻率,與檢索網站上其他內容的頻率相同。
  僅包含過去兩天內所建立報導的近期網址。報導發布超過兩天後,請從新聞 Sitemap 中移除這些網址,或從舊網址 Sitemap 中移除 <news:news> 中繼資料。
如果選擇從新聞 Sitemap 中移除舊網址的做法,這可能表示 Sitemap 會清空一段時間 (例如您在過去幾天沒有發布新文章的狀況)。您可能會在 Search Console 看到「Sitemap 中沒有內容」警告,不過這只是為了確保您是刻意留空。檔案空白完全不會導致 Google 搜尋發生問題。
新聞 Sitemap 範例
  以下範例顯示含有新聞擴充元素的一般 Sitemap。其中包含一個 <url> 標記,以及一個內含必要子標記的單一 <news:news> 標記:
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
    xmlns:news="http://www.google.com/schemas/sitemap-news/0.9">
  <url>
  <loc>http://www.example.org/business/article55.html</loc>
  <news:news>
    <news:publication>
      <news:name>The Example Times</news:name>
      <news:language>en</news:language>
    </news:publication>
    <news:publication_date>2008-12-23</news:publication_date>
    <news:title>Companies A, B in Merger Talks</news:title>
  </news:news>
  </url>
</urlset>新聞 Sitemap 參考資料
news 標記是在新聞 Sitemap 命名空間中定義:http://www.google.com/schemas/sitemap-news/0.9
為確保 Google 可以使用您的新聞 Sitemap,您必須使用下列必要的標記:
| 必要的標記 | |
|---|---|
| <news:news> | news:命名空間中其他標記的上層標記。每個urlSitemap 標記中只能有一個news:news標記 (以及對應的結尾標記),且每個 Sitemap 最多可包含 1,000 個news:news標記。如果新聞 Sitemap 中的<news:news>標記超過 1,000 個,請將 Sitemap 分割成多個較小的 Sitemap。 | 
| <news:publication> | 
         | 
| <news:name> | 
         | 
| <news:language> | 
         
        例外:如果是簡體中文,請使用  | 
| <news:publication_date> | 
        報導的發布日期,採用 W3C 格式。請使用「完整日期」格式 ( Google 接受下列任一格式: 
 | 
| <news:title> | 新聞報導的標題。 | 
Troubleshooting sitemaps
If you're having trouble with your sitemap, you can investigate the errors with Google Search Console. See Search Console's sitemaps troubleshooting guide for help.
其他資源
如需更多資訊,歡迎查看以下資源: