給網頁指定獨立的 Meta Tag:
Meta Tag 對於網頁搜尋的排名有幫助,但
Blogger 無法針對個別網頁指定
Meta Tag。如果是直接寫進 Template 中,整個網站的網頁都會被標誌上相同的關鍵字,這樣會被認為是 Spam。
下面介紹的是利用邏輯判斷網址,再決定要不要貼上
Meta Tag。所以,只有網頁被寫出來之後,才能進入 Template 中替網頁加上
Meta Tag。
在 Template 的 Edit Html 中,先找到下列的code:
<b:include data='blog' name='all-head-content'/>
加入以下程式碼:
<b:if cond='data:blog.url == "下列敘述及關鍵字的網頁網址"'>
<meta content='您的網站敘述' name='description'/>
<meta content='您的關鍵字' name='keywords'/>
</b:if>
範例如下:
<b:include data='blog' name='all-head-content'/>
<b:if cond='data:blog.url == "http://takifree.blogspot.com/2011/02/blog-post_26.html"'>
<meta content='如何加入網誌排行' name='description'/>
<meta content='免費網誌外掛,站長工具,網誌排行,部落格工具' name='keywords'/>
</b:if>
<b:if cond='data:blog.url == "http://takifree.blogspot.com/2011/02/blogger-meta-seo.html"'>
<meta content='Blogger Meta 設定方法 SEO小技巧' name='description'/>
<meta content='META,SEO,站長工具,bogger' name='keywords'/>
</b:if>