stati / seo
Stati 的 SEO 插件
0.1.2
2017-10-09 14:04 UTC
Requires
- php: ^7.0
Suggests
- stati/stati: An extensible, jekyll-compatible PHP static site generator
This package is not auto-updated.
Last update: 2024-09-29 04:07:30 UTC
README
这是一个非常简单的插件,可以为您的每个页面生成元标签。
用法
{% seo %}
标签将在您的 _config.yml 中包含以下内容:
-
<title>
标签将根据页面标题(在页面 frontmatter 中)加上您的站点标题(在 _config.yml 中定义)生成 -
描述将根据页面 frontmatter 中的
description
字段或您的站点 _config.yml 中的description
生成,如果页面描述不可用 -
将为所有页面生成规范 URL
-
Twitter 用户名,在您的 _config.yml 中按以下方式定义
twitter: username: benbalter
-
logo: 站点全局 logo 的 URL(例如,/images/company-logo.png)。
-
image: 对于在其 frontmatter 中定义了
image
字段的页面,我们将使用该字段用于社交图片。 -
google_site_verification 用于通过 Google 网站管理员工具验证所有权
-
lang - 这些标签标记的语言区域。格式为 language_TERRITORY。默认为 en_US。
我们尽量与 jekyll-seo-tag 插件的行为相似,但如果某些功能对您不起作用,请 提交问题