【问题标题】:Ghost Blogging Platform: Using different template for different categoriesGhost博客平台:针对不同的类别使用不同的模板
【发布时间】:2015-11-18 05:45:04
【问题描述】:

ghost中不同类别可以有不同的页面吗?

【问题讨论】:

    标签: ghost-blog ghost


    【解决方案1】:

    是的,你可以。 Ghost 中的类别称为标签,有关如何为特定标签创建模板的详细信息,请参阅tag pagestemplates 的文档。

    为了解释,每个标签都有一个形成 url 的“slug”。例如。安装 Ghost 时已经包含的默认标签是“Getting Started”,其中包含 slug“getting-started”。标签页可以在yourblog.com/tag/getting-started/ 访问,您可以使用文件名tag-getting-started.hbs 为其创建模板。

    注意:添加文件后,您需要重新启动 Ghost 才能检测新模板。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2011-11-09
      • 1970-01-01
      • 2011-04-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多