reazzon / flarum-seo
为您的 Flarum 论坛添加 SEO 标签
2.1
2024-07-11 07:46 UTC
Requires
- ext-json: *
- flarum/core: ^1.0.0
Suggests
- fof/sitemap: Allows you to generate powerful sitemap.xml files
Conflicts
README
🗂️ Flarum SEO
第一个为 Flarum 论坛添加 SEO 标签的 Flarum 扩展。
📥 安装
如果您想安装此扩展,请运行以下命令
composer require v17development/flarum-seo
♻️ 更新
在您的服务器上运行以下命令以更新插件
composer update v17development/flarum-seo
⚒️ 扩展与使用
您可以在自己的扩展中使用此扩展的功能。有关更多信息,请参阅这篇知识库文章。
🎁 添加以下页面的 SEO 标签
- 主页
- 标签页(如果启用扩展)
- 讨论页
- 用户个人资料
- 页面页(如果启用扩展)
✅ 兼容
此扩展将在以下扩展启用或禁用的情况下工作。所有扩展不是必需的,但如果它们已安装并启用,则可以一起工作
- Flarum likes 来自 Flarum https://github.com/flarum/likes
- Flarum tags 来自 Flarum https://github.com/flarum/tags
- Selected Post Best answer 来自 FriendsOfFlarum https://discuss.flarum.org/d/21894-friendsofflarum-best-answer
- Sitemap 来自 FriendsOfFlarum https://discuss.flarum.org/d/14941-fof-sitemap
- Pages 来自 FriendsOfFlarum https://discuss.flarum.org/d/18301-friendsofflarum-pages
🔍 Google 中的结果看起来像什么?
在 Google 重新索引您的网站后,它可能看起来像这样。这可能需要几天到几周的时间,直到大多数结果更新。以下截图为荷兰语,但您会明白这个概念:
⏱️ 变更需要多长时间才能生效?
这取决于。重新抓取可能需要几天到几周的时间,直到大多数结果更新。使用 FriendsOfFlarum Sitemap 让 Google 知道您的论坛上有什么讨论。您可以通过手动更新 Google 的搜索结果来加快速度Google Search Console,但这并不能保证搜索结果会立即更新。
使用以下 SEO 方法
扩展将使用以下 SEO 方法
-
默认 HTML meta 标签
- application-name
- description
- keywords
- language
-
当 FriendsOfFlarum 的 Sitemap 扩展启用时,将向您的论坛添加
robots.txt
,您的 sitemap.xml 链接将出现在 robots.txt 中 -
开放图协议(用于社交媒体,http://ogp.me)
- og:type
- og:title
- og:description
- og:url
- article:published_time
- article:updated_time
-
Schema.org SEO标准(大多数搜索引擎使用)
- WebPage https://schema.org/WebPage
- QAPage(默认) https://schema.org/QAPage
- DiscussionForumPosting(当禁用问答SEO结果时) https://schema.org/DiscussionForumPosting
- CollectionPage https://schema.org/CollectionPage
- ProfilePage https://schema.org/ProfilePage
-
如果设置,将页面图像设置为社交媒体。如果第一个帖子包含图像,则将使用该图像。
👍 你喜欢我的作品吗?
你可能想买我一杯咖啡并支持我的工作 :)