icybee/module-seo

提供搜索引擎优化

安装: 161

依赖项: 0

建议者: 0

安全: 0

星标: 0

关注者: 2

分支: 0

公开问题: 0

类型:icanboogie-module

3.0.x-dev 2017-04-04 20:05 UTC

This package is auto-updated.

Last update: 2024-09-20 03:05:27 UTC


README

Packagist Build Status Code Quality Code Coverage Downloads

事件钩子

Icybee\Modules\Pages\EditBlock::alter_children

添加用于编辑页面SEO标题和描述的控件。

Icybee\Modules\Pages\ExportOperation::process

为导出的页面添加SEO属性。

Icybee\Modules\Pages\PageController::render

在body末尾添加Google Analytics脚本,除非满足以下条件之一

  • "localhost"包含在服务器名称中。
  • 用户是管理员。
  • 页面或显示的记录是离线的。

Icybee\Modules\Sites\EditBlock::alter_children

扩展站点编辑块,添加SEO组和Google Analytics UA以及Google站点验证密钥的控件。

Brickrouge\Document::render_title:before

在渲染标题之前,用SEO标题替换文档标题。

Brickrouge\Document::render_metas:before

添加描述google-site-verification元标签。

Brickrouge\Document::render_metas

添加文档的规范地址。

要求

此包需要PHP 5.4或更高版本。
此包还需要安装Icybee

安装

推荐通过Composer安装此包。创建一个composer.json文件并运行php composer.phar install命令来安装。

$ composer require icybee/module-seo

克隆仓库

此包可在GitHub上找到,其仓库可以使用以下命令行克隆

$ git clone git://github.com/Icybee/module-seo.git images

测试

测试套件通过make test命令运行。Composer将自动安装以及运行套件所需的所有依赖项。可以使用make clean命令清理包目录。

此包由Travis CI持续测试。

Build Status Code Coverage

文档

该包是作为Icybee CMS 文档的一部分进行文档化的。可以使用make doc命令生成包及其依赖项的文档。文档使用ApiGendocs目录中生成。可以使用make clean命令清理包目录。

许可

该模块受新BSD许可证的许可 - 有关详细信息,请参阅LICENSE文件。