GHOST CMS - Properties
Posted qduck
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了GHOST CMS - Properties相关的知识,希望对你有一定的参考价值。
Properties
This is a full list of all the available properties that can be used within your routes.yaml
config file to manipulate your URL structure
Index of all available properties
Property | Description |
---|---|
template |
Determines which Handlebars template file will be used for this route. Defaults to index.hbs if not specified. |
permalink |
The generated URL for any post within a collection. Can contain dynamic variables based on post data:
|
filter |
Extensively filter posts returned in collections and channels using the full power and syntax of the Ghost Content API For example author:cameron+tag:news will return all posts published by Cameron, tagged with ‘News‘. Mix and match to suit. |
order |
Choose any number of fields and sort orders for your content:
|
data |
Fetch & associate data from the Ghost API with a specified route. The source route of the data will be redirected to the new custom route.
|
rss |
Collections and channels come with automatically generated RSS feeds which can be disabled by setting the rss property to false |
content_type |
Specify the mime-type for the current route, default: html |
controller |
Add a custom controller to a route to perform additional functions. Currently the only supported value is channel |
以上是关于GHOST CMS - Properties的主要内容,如果未能解决你的问题,请参考以下文章
GHOST CMS - Content Collections