File tree 3 files changed +5
-0
lines changed
docs/content/documentation/templates
3 files changed +5
-0
lines changed Original file line number Diff line number Diff line change 3
3
## 0.17.1 (unreleased)
4
4
5
5
- Fix bugs with colocated directories in the root ` content ` directory
6
+ - Add ` generate_feed ` field to the ` section ` object in templates
6
7
7
8
## 0.17.0 (2023-02-16)
8
9
Original file line number Diff line number Diff line change @@ -160,6 +160,7 @@ pub struct SerializingSection<'a> {
160
160
subsections : Vec < & ' a str > ,
161
161
translations : Vec < TranslatedContent < ' a > > ,
162
162
backlinks : Vec < BackLink < ' a > > ,
163
+ generate_feed : bool ,
163
164
}
164
165
165
166
#[ derive( Debug ) ]
@@ -218,6 +219,7 @@ impl<'a> SerializingSection<'a> {
218
219
reading_time : section. reading_time ,
219
220
assets : & section. serialized_assets ,
220
221
lang : & section. lang ,
222
+ generate_feed : section. meta . generate_feed ,
221
223
pages,
222
224
subsections,
223
225
translations,
Original file line number Diff line number Diff line change @@ -107,6 +107,8 @@ lang: String;
107
107
translations : Array < TranslatedContent > ;
108
108
// All the pages/sections linking this page: their permalink and a title if there is one
109
109
backlinks : Array < {permalink : String , title : String ? }> ;
110
+ // Whether this section generates a feed or not. Taken from the front-matter if set
111
+ generate_feed : bool ;
110
112
` ` `
111
113
112
114
## Table of contents
You can’t perform that action at this time.
0 commit comments