@@ -9,19 +9,34 @@ static POSTS_EXT: &str = "md";
9
9
#[ derive( Deserialize ) ]
10
10
#[ serde( rename_all = "kebab-case" , deny_unknown_fields) ]
11
11
pub ( crate ) struct Manifest {
12
+ /// Title to display in the "top row".
12
13
pub ( crate ) title : String ,
14
+
15
+ /// Title to use in the html header.
13
16
pub ( crate ) index_title : String ,
17
+
18
+ /// Description for metadata
14
19
pub ( crate ) description : String ,
20
+
21
+ /// Who maintains this blog? Appears in the rss feed.
15
22
pub ( crate ) maintained_by : String ,
23
+
24
+ /// Raw html describing the blog to insert into the index page.
16
25
pub ( crate ) index_html : String ,
26
+
27
+ /// If true, posts require a `team` in their metadata.
17
28
pub ( crate ) requires_team : bool ,
29
+
30
+ /// What text to use when linking to this blog in the "see also"
31
+ /// section from other blogs.
18
32
pub ( crate ) link_text : String ,
19
33
}
20
34
21
35
#[ derive( Serialize ) ]
22
36
pub ( crate ) struct Blog {
23
37
title : String ,
24
38
index_title : String ,
39
+ link_text : String ,
25
40
description : String ,
26
41
maintained_by : String ,
27
42
index_html : String ,
@@ -59,6 +74,7 @@ impl Blog {
59
74
description : manifest. description ,
60
75
maintained_by : manifest. maintained_by ,
61
76
index_html : manifest. index_html ,
77
+ link_text : manifest. link_text ,
62
78
prefix,
63
79
posts,
64
80
} )
@@ -68,6 +84,10 @@ impl Blog {
68
84
& self . title
69
85
}
70
86
87
+ pub ( crate ) fn link_text ( & self ) -> & str {
88
+ & self . link_text
89
+ }
90
+
71
91
pub ( crate ) fn index_title ( & self ) -> & str {
72
92
& self . index_title
73
93
}
0 commit comments