Grav CMS 的可能性

Grav CMS possibilities

我刚开始摆弄 grav 并阅读他们的文档,但我对它允许你做什么有一些疑问。

在每个 post 中,在我的降价文件中,我可以设置一些 yaml 或 twig 变量 link 例如带有图像的文件夹,在模板中我检查是否设置了这个变量并输出图像,如果没有我什么都不做?

在 Wordpress 中这很容易,但我想尝试一些更小、更快、更好写的东西。

事实证明,经过一段时间阅读 grav documentation, I found the answer to my question about creating custom fields, and default variables. It's all described in forms section 的 grav 文档。 (命名有点误导)

您可以在 twig filters & functions, and theme variables.

部分阅读有关 twig 变量和一般 twig 的信息

Twig documentation也很有用