1
1
import 'package:static_shock/static_shock.dart' ;
2
2
3
3
Future <void > main (List <String > arguments) async {
4
- // Configure the static website generator.
5
4
final staticShock = StaticShock ()
6
5
// Here, you can directly hook into the StaticShock pipeline. For example,
7
6
// you can copy an "images" directory from the source set to build set:
@@ -15,22 +14,26 @@ Future<void> main(List<String> arguments) async {
15
14
..plugin (const PrettyUrlsPlugin ())
16
15
..plugin (const RedirectsPlugin ())
17
16
..plugin (const SassPlugin ())
18
- ..plugin (DraftingPlugin (
19
- showDrafts: arguments.contains ("preview" ),
20
- ))
21
- ..plugin (RssPlugin (
22
- site: RssSiteConfiguration (
23
- title: "Catalyst Voices Updates" ,
24
- description:
25
- "Discover the latest features in our Catalyst Voices apps." ,
26
- homePageUrl: "" ,
17
+ ..plugin (
18
+ DraftingPlugin (
19
+ showDrafts: arguments.contains ("preview" ),
27
20
),
28
- pageToRssItemMapper: (RssSiteConfiguration config, Page page) {
29
- return defaultPageToRssItemMapper (config, page)? .copyWith (
30
- author: page.data["author" ],
31
- );
32
- },
33
- ));
21
+ )
22
+ ..plugin (
23
+ RssPlugin (
24
+ site: RssSiteConfiguration (
25
+ title: "Catalyst Voices Updates" ,
26
+ description:
27
+ "Discover the latest features in our Catalyst Voices apps." ,
28
+ homePageUrl: "" ,
29
+ ),
30
+ pageToRssItemMapper: (RssSiteConfiguration config, Page page) {
31
+ return defaultPageToRssItemMapper (config, page)? .copyWith (
32
+ author: page.data["author" ],
33
+ );
34
+ },
35
+ ),
36
+ );
34
37
35
38
// Generate the static website.
36
39
await staticShock.generateSite ();
0 commit comments