Outline
不會動的,編成 sitemap.xml,會動的,用 rss 提交。
一、首先瞭解 RSS 跟 Atom 差別在哪?
- ATOM is an IETF standard while RSS is not
- ATOM feeds explicitly indicates the content while the browser is left to figure out whether the RSS feed contains plain text or escaped HTML
- ATOM code is modular and reusable while RSS code is not
- RSS still holds dominance in the syndication format due to its head start and popularity
二、他們怎麼知道我網頁的 RSS/Atom link?
像是通常你要訂閱 blog ,可能在 RSS reader 輸入你的網址就會自動搜尋,他是怎麼做到的?

其實偷看一下 <head> ,其中的 type 是 "application/rss+xml" 或 "application/atom+xml"
- new blog demo: http://evenchange4.github.io/atom
|
|
- old blog demo: http://evenchange4.tumblr.com/rss
|
|
三、那 Sitemap 呢?
Sitemap 的提交主要的目的,是要避免搜索引擎的爬蟲沒有完整的收錄整個網頁的內容,所以提交 Sitemap 是能夠補足搜索引擎的不足,進而加速網頁的收錄速度,達到搜尋引擎友好的目的。
四、我碰到的問題,<head> 內的 link type RSS/Atom 錯亂?
當 RSS reader 自動搜尋 http://michaelhsu.tw/ 會偵測到 /rss 而不是 /atom,我覺得原因是我這個 domain name 之前是 DNS A(host) 到舊的 blog 那時候是用 rss,而現在新的 blog 是用 atom。
所以我覺得並不是因為 head 內寫錯了,而是有 CDN 的原因?待解決…
已解決,改成 feedburner 一勞永逸
|
|
五、怎麼產生 RSS/Atom.XML
我的 blog 是 hexo node.js base 的,npm 有一個相當簡單的 package hexo-generator-feed,設定教學文可以參考 kpman | code 的在hexo自訂rss。
Reference
- What is the difference between RSS and ATOM feeds? stackoverflow
- Sitemap / RSS / Atom, SEO stackoverflow
- 瀏覽器自動偵測網站是否具有RSS訂閱
- 如何有效正確的提交Sitemap給搜索引擎
