reh/kirby-seo-preview-section

为 Kirby 3 Panel 提供可配置和交互式的 SEO 预览部分。

资助包维护!
paypal.me/richardhopp

安装量: 1,039

依赖项: 0

建议者: 0

安全性: 0

星标: 20

关注者: 3

分支: 0

开放问题: 4

语言:Vue

类型:kirby-plugin

v1.0 2019-12-07 16:23 UTC

This package is auto-updated.

Last update: 2024-09-16 10:49:05 UTC


README

GitHub release License Kirby Version_3

为 Kirby 3+ 的 Panel 提供可配置和交互式的 SEO 预览部分。

seo-preview-section

安装

选择以下安装方法之一

手动

下载 并将此存储库复制到 /site/plugins/seo-preview-section

Git 子模块

git submodule add https://github.com/REHvision/kirby-seo-preview-section.git site/plugins/seo-preview-section

Composer

composer require reh/kirby-seo-preview-section

设置

安装此插件后,您可以将 seopreview 部分添加到您的蓝图。

在多个页面蓝图中使用它的最简单方法是使用选项卡蓝图(例如 site/blueprints/tabs/meta.yml

# site/blueprints/tabs/meta.yml

label: SEO
icon: search
columns:

  - width: 1/2
    fields:

      metatitle:
        label: Meta title
        type: text

      metadescription:
        label: Meta description
        type: textarea

  - width: 1/2
    sections:

      seopreview:
        type:                seopreview

#       options:             defaults:
        headline:            SEO preview

        titleField:          metatitle        # field key reference
        defaultTitle:        page.title       # query (e.g: page.myCustomSeoTitle)
        separator:           " "
        baseTitle:           site.title       # query (e.g. site.metatitle)

        descriptionField:    metadescription  # field key reference
        defaultDescription:  page.text        # query (e.g: page.text.blocks.html when using the editor)

该蓝图可以在 site 的选项卡定义和任何 page 蓝图中重复使用

tabs:

    # just use meta.yml
    meta: tabs/meta

    # or extend/overwrite it in this blueprint/template
    meta:
        extends: tabs/meta
        defaultDescription: page.text.blocks.html

注意:此插件仅提供预览,不生成任何元标签!

因此,请确保连接您用于生成元标签的字段,并且预览的输出与您的实际元标签相匹配!

状态与发展

状态

首次公开发布 (目前仅在单语言设置中与 Kirby 3.3.1 进行了测试)

重要

尽管此插件不应该破坏任何东西,但在生产环境中使用之前,请始终在您的开发环境中对其进行测试!

反馈

我很乐意收到反馈 (错误、优化建议或一般性)

待办事项

  • 添加 composer 兼容性
  • 在多语言设置中进行测试
  • 记录插件选项
  • 添加有关如何帮助插件开发的说明

许可

MIT