上 险象环生 尽力争取 “智”取
中 艰难万分 力不从心 无计
然 勉为其难 夜夜加班 痛苦
Popularity: 10% [?]
Popularity: 10% [?]
If you enjoy our post, feel free to subscribes to our rss feeds
一个IT从业者的枫言枫语
上 险象环生 尽力争取 “智”取
中 艰难万分 力不从心 无计
然 勉为其难 夜夜加班 痛苦
Popularity: 10% [?]
Popularity: 10% [?]
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
Popularity: 19% [?]
Popularity: 19% [?]
If you enjoy our post, feel free to subscribes to our rss feeds
测试,测试。
Popularity: 9% [?]
Popularity: 9% [?]
If you enjoy our post, feel free to subscribes to our rss feeds
证书 邮件 银泰 adsense apple blizzard blog cisco debian dell diablo firefox free game google intel iPhone ipod jailbreak linux microsoft movie Palm php picase rss sc430 security shop skype software symantec taiwan taobao treo unlock vmware wifi wikipedia windows winpwn wordpress wow xp zhoushan
©2007-2008 空想枫.
Creative Commons: Attribution-Noncommercial-No Derivative Works 2.5 China.署名-非商业性使用-禁止演绎 2.5 中国