You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/Themes.md
+22-1Lines changed: 22 additions & 1 deletion
Display the source diff
Display the rich diff
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
94
94
95
95
### Understanding the Models
96
96
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
0 commit comments