Skip to content

Commit d8a70f3

Browse files
committed
Doc update
1 parent 0a5c433 commit d8a70f3

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

docs/Themes.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)