如何在Bolt CMS中实施SEO

时间:2018-11-11 11:44:14

标签: bolt-cms

我需要为每个页面更新mata标题,描述和关键字。但是在bolt仪表盘中没有此选项。

屏幕截图

enter image description here

2 个答案:

答案 0 :(得分:0)

有一个用于SEO的功能,可让您编辑元标记,标题和索引规则:https://market.bolt.cm/view/bobdenotter/seo

SEO扩展程序还允许您编辑OG标签。

答案 1 :(得分:0)

您需要在配置和模板中添加该字段。 编辑每种项目类型的内容类型,然后在模板中使用该字段。

示例:

内容类型文件中的代码:

page:
    name: Page 
    singular_name: Page Item 
    fields:
        title:
            type: text
            class: large
        slug:
            type: slug
            uses: title

模板样本:

<head>
    <meta charset="utf-8" />
    <title>{{ page.title }}</title>
</head>

有关其内容类型的文档中的更多信息:https://docs.bolt.cm/3.6/contenttypes/intro