robertlemke / plugin-blog

Neos的博客插件

v4.2.1 2022-05-31 13:34 UTC

README

本插件为Neos网站提供基于节点的插件。

注意:尽管此包正在使用中(例如在robertlemke.com上),但它不是一个完整的博客解决方案。

快速开始

  • 将插件的路由定义包含到您的Routes.yaml文件中,就像
-
  name: 'RobertLemkeBlogPlugin'
  uriPattern: '<RobertLemkeBlogPluginSubroutes>'
  subRoutes:
    RobertLemkeBlogPluginSubroutes:
      package: RobertLemke.Plugin.Blog
  • 将插件内容元素“博客文章概述”添加到您选择的任何位置。

评论通知

一旦配置了notifications.to.email设置并且安装了neos/swiftmailer,每当提交评论时都会发送通知。

Akismet垃圾邮件检查

如果您配置了Akismet包,评论将被检查是否为垃圾邮件,并标记为垃圾邮件。

RSS源

  • 在您的文章容器节点下方添加一个页面以提供以下源,它可以是空的,并且应在菜单中隐藏

  • 将此添加到您的TS(配置显示默认值)

xml = RobertLemke.Plugin.Blog:Feed {
  feedTitle = 'The Neos Blog'
  feedDescription = 'A great, new - yet unconfigured - blog powered by Neos'
  feedUri = ''
  includeContent = ${false}
}

现在当您访问“源节点”并使用URL中的xml而不是html时,您应该看到博客的XML源。