backbee/core-php

BackBee 的核心 PHP

v4.2.8.2 2024-08-09 08:19 UTC

This package is auto-updated.

Last update: 2024-09-09 08:52:07 UTC


README

BackBee CorePHP.

1) 图片优化器

安装图片优化器的库

Fedora

yum install ImageMagick -y
yum -y install libwebp-devel

Ubuntu

apt-get install imagemagick
apt-get install libwebp-dev

2) 网站地图

编辑文件 res/repository/Config/sitemap.yml 并编辑网站地图参数

change_freq: weekly
limits: 50000
cache_ttl: 86400
excluded: [ ]
  • 排除:如果您想在网站地图中隐藏 URL 模式,可以将您的模式添加到排除变量中。

3) 知识图谱

编辑文件 res/repository/Config/knowledgeGraph.yml 并编辑知识图谱参数

graph:
    name: BackBee
    website_name: backbee
    website_description: Backbee
    website_search: /search
    website_search_term_string: '?q='
    logo: https://www.backbee.com/resources/integration/html/mstile-70x70.png
    image: https://www.backbee.com/resources/integration/html/mstile-310x310.png
    social_profiles: [ https://twitter.com, https://# ]
    twitter_card: summary_large_image
google_website_verification: https://www.google.com/webmasters/verification/home?hl=en
google_search_console: https://search.google.com/search-console
mapping_schema_types:
    Article: [ home, blank, article ]
  • name: 组织名称
  • website_name: 网站名称
  • website_description: 网站描述
  • website_search: 网站潜在 SearchAction > website_search?q={website_search_term_string}
  • logo: 组织标志
  • image: 组织图片
  • social_profiles: 组织社交媒体资料
  • twitter_card: Metadata twitter:card (summarysummary_large_image)
  • google_website_verification: https://search.google.com/search-console (固定链接)
  • google_search_console: https://search.google.com/search-console (固定链接)
  • mapping_schema_types: 映射模式类型 (参见上面示例:SchemaArticle 映射为 scientific_article 和 news)