在plone站点中执行seo的一些viewlet
cs.seopack的Python项目详细描述
简介
此产品添加了一些viewlet来改进plone站点中的seo:
Meta tag to tell robots “noindex, follow” the batch pages
Canonical url link for all pages. We have followed these rules for canonical urls:
For normal content, the url is the object’s url without the trailing ‘/’:
- yoursite.com/news/ -> yoursite.com/news
默认页(及其尾随的“/”)将从规范URL中删除:
- yoursite.com/news/aggregator -> yoursite.com/news (aggregator is the default page of news)
- yoursite.com/news/aggregator/ -> yoursite.com/news (aggregator is the default page of news)
视图或模板名称保留在规范URL中:
- yoursite.com/@@search?SearchableText=query -> yoursite.com/@@search?SearchableText=query
- yoursite.com/folder1/folder_listing -> yoursite.com/folder1/folder_listing
自定义批处理模板,以基于规范URL创建批处理基URL。
用PLONE4.2.x进行测试。它应该可以运行之前所有的PLONE4版本,但是它还没有测试。
在plone 4.3.x中,批处理模板中的更改将不可用,因为 使用plone.batching产品,此产品仅用于替换batch_macros.pt 模板。
更改日志
1.1(2013-11-18)
- 为默认页面添加了<;meta name=“robots”value=“noindex,follow”/>; [LabBugutx]
- 为规范viewlet添加了zcml:condition=“not have plone-43” [LabBugutx]
1.0.3(2012/09/10)
- 批处理模板需要不带参数的基本url [勘误]
1.0.2.1(2012/09/10)
- 棕色包释放:从模板中删除调试输出。 [勘误]
1.0.2(2012/09/10)
- 修复第2页和下一页的批处理URL [勘误]
1.0.1(2012/09/07)
- 再来一次入住巴赫金 [勘误]
1.0(2012/09/07)
- 使用规范URL修复批处理的基URL [勘误]
- 删除尾部/对于规范URL,依赖于 默认视图(模板或默认页) [勘误]
- 为所有页面添加了<;link rel=“canonical”…>;标记。 [勘误]
- 添加meta noindex,跟踪批处理页的标记 [勘误]