File tree Expand file tree Collapse file tree 1 file changed +22
-1
lines changed
Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -94,4 +94,25 @@ headers and footers and so on. Please refer to `Standard` theme for examples on
9494
9595### Understanding the Models
9696
97- TODO: add model mappings here
97+ Theme authors can use models inside post lists or single post. All properties from
98+ the models can be accessed within theme, for example ` Model.Blog.Title ` .
99+
100+ #### ListModel
101+
102+ Name | Data Type | Description
103+ --- | --- | ---
104+ Blog | [ BlogItem] ( https://github.com/blogifierdotnet/Blogifier/blob/master/src/Core/Data/Models/AppModel.cs ) | Blog settings (title, description etc.)
105+ Author | [ Author] ( https://github.com/blogifierdotnet/Blogifier/blob/master/src/Core/Data/Domain/Author.cs ) | Author of the blog
106+ Category | string | Category (when browse by category)
107+ Posts | IEnumerable < ; PostItem> ; | List of blog posts
108+ Pager | [ Pager] ( https://github.com/blogifierdotnet/Blogifier/blob/master/src/Core/Helpers/Pager.cs ) | Pager (older/newer links)
109+ PostListType | PostListType | Posts type (blog, category, author, search)
110+
111+ #### PostModel
112+
113+ Name | Data Type | Description
114+ --- | --- | ---
115+ Blog | BlogItem | Blog settings (title, description etc.)
116+ Post | PostItem | Current post
117+ Older | PostItem | Previous/older post
118+ Newer | PostItem | Next/newer post
You can’t perform that action at this time.
0 commit comments