上 险象环生 尽力争取 “智”取
中 艰难万分 力不从心 无计
然 勉为其难 夜夜加班 痛苦
If you enjoy our post, feel free to subscribes to our rss feeds
一个IT从业者的枫言枫语
上 险象环生 尽力争取 “智”取
中 艰难万分 力不从心 无计
然 勉为其难 夜夜加班 痛苦
If you enjoy our post, feel free to subscribes to our rss feeds
Tag:pLog,Sitemaps,Google,template
Google推出Google Sitemaps后.就想为pLog加上对它的支持。
之前一直很忙,直到今天上午才把它给加上。懒得写代码,就偷懒直接利用rss.php了。嘿嘿。
修改的Template如下:
< ?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.google.com/schemas/sitemap/0.84">
<url>
<loc>{$url->blogLink()}</loc>
<lastmod>{$locale->formatDate($now, "%Y-%m-%dT%H:%M:%SZ")}</lastmod>
<changefreq>alway</changefreq>
<priority>1</priority>
</url>
{foreach from=$posts item=post}
<url>
<loc>{$url->postPermalink($post)}</loc>
{assign var="postDate" value=$post->getDateObject()}
<lastmod>{$locale->formatDate($postDate, "%Y-%m-%dT%H:%M:%SZ")}</lastmod>
<changefreq>hourly</changefreq>
<priority>0.8</priority>
</url>
{/foreach}
</urlset>
保存到pLog安装目录\templates\rss\sitemap.template
通过你的网站,查看rss2的地址,将地址最后的rss20改为sitemap。
即可。
演示:http://xiami.manjublog.com/rss.php?profile=sitemap
If you enjoy our post, feel free to subscribes to our rss feeds
adsense apple blog cisco cydia debian dell firefox free game google iPhone iphone 3g ipod jailbreak linux microsoft movie novell Palm php pre quickpwn rss sc430 security skype software symantec taiwan treo ubuntu unlock vmware webos wifi windows windows 7 winpwn wordpress wow x200 xp zhoushan 银泰
©2007-2010 空想枫.
Creative Commons: Attribution-Noncommercial-No Derivative Works 2.5 China.署名-非商业性使用-禁止演绎 2.5 中国
WordPress Themes by Irish Band & Steel Band