-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.wyam
580 lines (524 loc) · 22.7 KB
/
config.wyam
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
#n Wyam.Common
#n Wyam.Core
#n Wyam.Feeds
#n Wyam.Html
#n Wyam.Less
#n Wyam.Markdown
#n Wyam.Razor
#n Wyam.Sass
#n Wyam.Yaml
#n Wyam.Web
using Wyam.Web.Pipelines;
// Customize your settings and add new ones here
Settings[Keys.Host] = "host.com";
Settings[BlogKeys.Title] = "My Blog";
Settings[BlogKeys.Description] = "Welcome!";
Settings[BlogKeys.MarkdownConfiguration] = "advanced+bootstrap";
Settings[BlogKeys.IncludeDateInPostPath] = false;
Settings[BlogKeys.PostsPath] = new DirectoryPath("posts");
Settings[BlogKeys.MetaRefreshRedirects] = true;
Settings[BlogKeys.GenerateArchive] = true;
Settings[BlogKeys.IndexPageSize] = 3;
Settings[BlogKeys.RssPath] = Wyam.Feeds.GenerateFeeds.DefaultRssPath;
Settings[BlogKeys.AtomPath] = Wyam.Feeds.GenerateFeeds.DefaultAtomPath;
Settings[BlogKeys.RdfPath] = Wyam.Feeds.GenerateFeeds.DefaultRdfPath;
Settings[BlogKeys.IndexPath] = "index.html";
Settings[BlogKeys.IndexTemplate] = "_Index.cshtml";
// Add any pipeline customizations here
// Pages
Pipelines.Add(
nameof(Blog.Pages),
Blog.Pages
);
// BlogPosts
Pipelines.Add(
nameof(Blog.BlogPosts),
Blog.BlogPosts
);
// Tags
Pipelines.Add(
nameof(Blog.Tags),
Blog.Tags
);
// TagIndex
Pipelines.Add(
nameof(Blog.TagIndex),
Blog.TagIndex
);
// BlogArchive
Pipelines.Add(
nameof(Blog.BlogArchive),
Blog.BlogArchive
);
// Index
Pipelines.Add(
nameof(Blog.Index),
Blog.Index
);
// Feed
Pipelines.Add(
nameof(Blog.Feed),
Blog.Feed
);
// RenderBlogPosts
Pipelines.Add(
nameof(Blog.RenderBlogPosts),
Blog.RenderBlogPosts
);
// RenderPages
Pipelines.Add(
nameof(Blog.RenderPages),
Blog.RenderPages
);
// Redirects
Pipelines.Add(
nameof(Blog.Redirects),
Blog.Redirects
);
// Less
Pipelines.Add(
nameof(Blog.Less),
Blog.Less
);
// Sass
Pipelines.Add(
nameof(Blog.Sass),
Blog.Sass
);
// Resources
Pipelines.Add(
nameof(Blog.Resources),
Blog.Resources
);
// ValidateLinks
Pipelines.Add(
nameof(Blog.ValidateLinks),
Blog.ValidateLinks
);
// Sitemap
Pipelines.Add(
nameof(Blog.Sitemap),
Blog.Sitemap
);
/// <summary>
/// A recipe for creating blogging websites.
/// </summary>
/// <metadata cref="BlogKeys.Title" usage="Setting">The title of the blog.</metadata>
/// <metadata cref="BlogKeys.Title" usage="Input">The title of the post or page.</metadata>
/// <metadata cref="BlogKeys.Image" usage="Setting">The relative path to an image to display on the home page.</metadata>
/// <metadata cref="BlogKeys.Image" usage="Input">The relative path to an image for the current post or page (often shown in the header of the page).</metadata>
/// <metadata cref="BlogKeys.ProcessIncludes" usage="Setting" />
/// <metadata cref="BlogKeys.ProcessIncludes" usage="Input" />
/// <metadata cref="BlogKeys.Description" usage="Setting" />
/// <metadata cref="BlogKeys.Intro" usage="Setting" />
/// <metadata cref="BlogKeys.PostsPath" usage="Setting" />
/// <metadata cref="BlogKeys.CaseInsensitiveTags" usage="Setting" />
/// <metadata cref="BlogKeys.MarkdownConfiguration" usage="Setting" />
/// <metadata cref="BlogKeys.MarkdownExtensionTypes" usage="Setting" />
/// <metadata cref="BlogKeys.IncludeDateInPostPath" usage="Setting" />
/// <metadata cref="BlogKeys.MetaRefreshRedirects" usage="Setting" />
/// <metadata cref="BlogKeys.NetlifyRedirects" usage="Setting" />
/// <metadata cref="BlogKeys.RssPath" usage="Setting" />
/// <metadata cref="BlogKeys.AtomPath" usage="Setting" />
/// <metadata cref="BlogKeys.RdfPath" usage="Setting" />
/// <metadata cref="BlogKeys.ValidateAbsoluteLinks" usage="Setting" />
/// <metadata cref="BlogKeys.ValidateRelativeLinks" usage="Setting" />
/// <metadata cref="BlogKeys.ValidateLinksAsError" usage="Setting" />
/// <metadata cref="BlogKeys.TagPageSize" usage="Setting" />
/// <metadata cref="BlogKeys.IndexPageSize" usage="Setting" />
/// <metadata cref="BlogKeys.IndexPaging" usage="Setting" />
/// <metadata cref="BlogKeys.IndexFullPosts" usage="Setting" />
/// <metadata cref="BlogKeys.ArchivePageSize" usage="Setting" />
/// <metadata cref="BlogKeys.ArchiveExcerpts" usage="Setting" />
/// <metadata cref="BlogKeys.GenerateArchive" usage="Setting" />
/// <metadata cref="BlogKeys.IgnoreFolders" usage="Setting" />
/// <metadata cref="BlogKeys.MarkdownPrependLinkRoot" usage="Setting" />
/// <metadata cref="BlogKeys.Published" usage="Input" />
/// <metadata cref="BlogKeys.Tags" usage="Input" />
/// <metadata cref="BlogKeys.Lead" usage="Input" />
/// <metadata cref="BlogKeys.Excerpt" usage="Output" />
/// <metadata cref="BlogKeys.ShowInNavbar" usage="Input" />
/// <metadata cref="BlogKeys.Posts" usage="Output" />
/// <metadata cref="BlogKeys.Tag" usage="Output" />
public class Blog : Recipe
{
/// <inheritdoc cref="Web.Pipelines.Pages" />
[SourceInfo]
public static Pages Pages { get; } = new Pages(
nameof(Pages),
new PagesSettings
{
IgnorePaths = ctx =>
new[] { ctx.DirectoryPath(BlogKeys.PostsPath)?.FullPath }
.Concat(ctx.List(BlogKeys.IgnoreFolders, Array.Empty<string>()))
.Where(x => x != null),
MarkdownConfiguration = ctx => ctx.String(BlogKeys.MarkdownConfiguration),
MarkdownExtensionTypes = ctx => ctx.List<Type>(BlogKeys.MarkdownExtensionTypes),
ProcessIncludes = (doc, ctx) => doc.Bool(BlogKeys.ProcessIncludes),
PrependLinkRoot = ctx => ctx.Bool(BlogKeys.MarkdownPrependLinkRoot)
});
/// <inheritdoc cref="Web.Pipelines.BlogPosts" />
[SourceInfo]
public static BlogPosts BlogPosts { get; } = new BlogPosts(
nameof(BlogPosts),
new BlogPostsSettings
{
PublishedKey = BlogKeys.Published,
MarkdownConfiguration = ctx => ctx.String(BlogKeys.MarkdownConfiguration),
MarkdownExtensionTypes = ctx => ctx.List<Type>(BlogKeys.MarkdownExtensionTypes),
ProcessIncludes = (doc, ctx) => doc.Bool(BlogKeys.ProcessIncludes),
IncludeDateInPostPath = ctx => ctx.Bool(BlogKeys.IncludeDateInPostPath),
PostsPath = ctx => ctx.DirectoryPath(BlogKeys.PostsPath, ".").FullPath,
PrependLinkRoot = ctx => ctx.Bool(BlogKeys.MarkdownPrependLinkRoot)
});
/// <summary>
/// Generates the tag pages for blog posts.
/// </summary>
[SourceInfo]
public static Archive Tags { get; } = new Archive(
nameof(Tags),
new ArchiveSettings
{
Pipelines = new string[] { BlogPosts },
TemplateFile = ctx => "_Tag.cshtml",
Layout = "/_Layout.cshtml",
Group = (doc, ctx) => doc.List<string>(BlogKeys.Tags),
CaseInsensitiveGroupComparer = ctx => ctx.Bool(BlogKeys.CaseInsensitiveTags),
PageSize = ctx => ctx.Get(BlogKeys.TagPageSize, int.MaxValue),
Title = (doc, ctx) => doc.String(Keys.GroupKey),
RelativePath = (doc, ctx) => $"tags/{doc.String(Keys.GroupKey)}.html",
GroupDocumentsMetadataKey = BlogKeys.Posts,
GroupKeyMetadataKey = BlogKeys.Tag
});
/// <inheritdoc cref="Pipelines.TagIndex" />
[SourceInfo]
public static Pipeline TagIndex { get; } = new Pipeline(
"TagIndex",
new If(
ctx => ctx.Documents["Tags"].Any(),
new ReadFiles("_Tags.cshtml"),
new FrontMatter(
new Wyam.Yaml.Yaml()),
new Wyam.Razor.Razor()
.IgnorePrefix(null)
.WithLayout("/_Layout.cshtml"),
//new Wyam.Core.Modules.Contents.Shortcodes(),
new WriteFiles((doc, ctx) => "tags/index.html"))
.WithoutUnmatchedDocuments()
);
/// <summary>
/// Generates the index pages for blog posts.
/// </summary>
[SourceInfo]
public static ConditionalPipeline BlogArchive { get; } = new ConditionalPipeline(
ctx => ctx.Bool(BlogKeys.GenerateArchive),
new Archive(
nameof(BlogArchive),
new ArchiveSettings
{
Pipelines = new string[] { BlogPosts },
TemplateFile = ctx => "_Archive.cshtml",
Layout = "/_Layout.cshtml",
PageSize = ctx => ctx.Get(BlogKeys.ArchivePageSize, int.MaxValue),
Title = (doc, ctx) => "Archive",
RelativePath = (doc, ctx) => $"{ctx.DirectoryPath(BlogKeys.PostsPath, ".").FullPath}"
}));
/// <summary>
/// Generates the index page(s).
/// </summary>
[SourceInfo]
public static Archive Index { get; } = new Archive(
nameof(Index),
new ArchiveSettings
{
Pipelines = new string[] { BlogPosts },
TemplateFile = ctx => ctx.FilePath(BlogKeys.IndexTemplate, "_Index.cshtml"),
Layout = "/_Layout.cshtml",
PageSize = ctx => ctx.Get(BlogKeys.IndexPageSize, int.MaxValue),
WriteIfEmpty = true,
TakePages = ctx => ctx.Bool(BlogKeys.IndexPaging) ? int.MaxValue : 1,
RelativePath = (doc, ctx) => $"{ctx.DirectoryPath(BlogKeys.IndexPath, ".").FullPath}"
});
/// <inheritdoc cref="Wyam.Web.Pipelines.Feeds" />
[SourceInfo]
public static Wyam.Web.Pipelines.Feeds Feed { get; } = new Wyam.Web.Pipelines.Feeds(
nameof(Feed),
new FeedsSettings
{
Pipelines = new string[] { BlogPosts },
RssPath = ctx => ctx.FilePath(BlogKeys.RssPath),
AtomPath = ctx => ctx.FilePath(BlogKeys.AtomPath),
RdfPath = ctx => ctx.FilePath(BlogKeys.RdfPath)
});
/// <inheritdoc cref="Wyam.Web.Pipelines.RenderBlogPosts" />
[SourceInfo]
public static RenderBlogPosts RenderBlogPosts { get; } = new RenderBlogPosts(
nameof(RenderBlogPosts),
new RenderBlogPostsSettings
{
Pipelines = new string[] { BlogPosts },
PublishedKey = BlogKeys.Published,
Layout = (doc, ctx) => "/_PostLayout.cshtml"
});
/// <inheritdoc cref="Wyam.Web.Pipelines.RenderPages" />
[SourceInfo]
public static RenderPages RenderPages { get; } = new RenderPages(
nameof(RenderPages),
new RenderPagesSettings
{
Pipelines = new string[] { Pages },
Layout = (doc, ctx) => "/_Layout.cshtml"
});
/// <inheritdoc cref="Wyam.Web.Pipelines.Redirects" />
[SourceInfo]
public static Redirects Redirects { get; } = new Redirects(
nameof(Redirects),
new RedirectsSettings
{
Pipelines = new string[] { RenderPages, RenderBlogPosts },
MetaRefreshRedirects = ctx => ctx.Bool(BlogKeys.MetaRefreshRedirects),
NetlifyRedirects = ctx => ctx.Bool(BlogKeys.NetlifyRedirects)
});
/// <inheritdoc cref="Wyam.Web.Pipelines.Less" />
[SourceInfo]
public static Wyam.Web.Pipelines.Less Less { get; } = new Wyam.Web.Pipelines.Less(nameof(Less));
/// <inheritdoc cref="Wyam.Web.Pipelines.Sass" />
[SourceInfo]
public static Wyam.Web.Pipelines.Sass Sass { get; } = new Wyam.Web.Pipelines.Sass(nameof(Sass));
/// <inheritdoc cref="Wyam.Web.Pipelines.Resources" />
[SourceInfo]
public static Resources Resources { get; } = new Resources(nameof(Resources));
/// <inheritdoc cref="Web.Pipelines.ValidateLinks" />
[SourceInfo]
public static Wyam.Web.Pipelines.ValidateLinks ValidateLinks { get; } = new Wyam.Web.Pipelines.ValidateLinks(
nameof(Wyam.Web.Pipelines.ValidateLinks),
new Wyam.Web.Pipelines.ValidateLinksSettings
{
Pipelines = new string[] { RenderPages, RenderBlogPosts, Resources },
ValidateAbsoluteLinks = ctx => ctx.Bool(BlogKeys.ValidateAbsoluteLinks),
ValidateRelativeLinks = ctx => ctx.Bool(BlogKeys.ValidateRelativeLinks),
ValidateLinksAsError = ctx => ctx.Bool(BlogKeys.ValidateLinksAsError)
});
/// <inheritdoc cref="Wyam.Web.Pipelines.Sitemap" />
[SourceInfo]
public static Wyam.Web.Pipelines.Sitemap Sitemap { get; } = new Wyam.Web.Pipelines.Sitemap(nameof(Sitemap));
}
/// <summary>
/// Metadata keys used by the blog recipe.
/// </summary>
public static class BlogKeys
{
/// <summary>The title of the blog, post, or page.</summary>
/// <type><see cref="string"/></type>
public const string Title = nameof(Title);
/// <summary>The relative path to a page image.</summary>
/// <type><see cref="string"/></type>
public const string Image = nameof(Image);
/// <summary>The description of your blog (usually placed on the home page).</summary>
/// <type><see cref="string"/></type>
public const string Description = nameof(Description);
/// <summary>
/// A short introduction to your blog (usually placed on the home page
/// under the description).
/// </summary>
/// <type><see cref="string"/></type>
public const string Intro = nameof(Intro);
/// <summary>
/// Controls the parent path where blog posts are placed. The default is "posts".
/// This affects both input and output files (I.e., if you change this your input
/// files must also be under the same path).
/// </summary>
/// <type><see cref="DirectoryPath"/> or <see cref="string"/></type>
public const string PostsPath = nameof(PostsPath);
/// <summary>
/// Set to <c>true</c> to make tag groupings case-insensitive.
/// </summary>
/// <type><see cref="bool"/></type>
public const string CaseInsensitiveTags = nameof(CaseInsensitiveTags);
/// <summary>
/// Set this to control the activated set of Markdown extensions for the
/// Markdig Markdown renderer. The default value is "advanced+bootstrap".
/// </summary>
/// <type><see cref="string"/></type>
public const string MarkdownConfiguration = nameof(MarkdownConfiguration);
/// <summary>
/// Set this to add extension Markdown extensions for the Markdig Markdown
/// renderer. The default value is null;
/// </summary>
/// <type><see cref="IEnumerable{IMarkdownExtension}"/></type>
public const string MarkdownExtensionTypes = nameof(MarkdownExtensionTypes);
/// <summary>
/// Indicates that include statements should be processed using the <see cref="Include"/> module.
/// The default behavior is not to process includes.
/// </summary>
/// <type><see cref="bool"/></type>
public const string ProcessIncludes = nameof(ProcessIncludes);
/// <summary>
/// Setting this to <c>true</c> uses
/// the year and date in the output path of blog posts.
/// The default value is <c>false</c>.
/// </summary>
/// <type><see cref="bool"/></type>
public const string IncludeDateInPostPath = nameof(IncludeDateInPostPath);
/// <summary>
/// Set to <c>true</c> (the default value) to generate meta refresh pages
/// for any redirected documents (as indicated by a <c>RedirectFrom</c>
/// metadata value in the document).
/// </summary>
/// <type><see cref="bool"/></type>
public const string MetaRefreshRedirects = nameof(MetaRefreshRedirects);
/// <summary>
/// Set to <c>true</c> (the default value is <c>false</c>) to generate
/// a Netlify <c>_redirects</c> file from redirected documents
/// (as indicated by a <c>RedirectFrom</c> metadata value).
/// </summary>
/// <type><see cref="bool"/></type>
public const string NetlifyRedirects = nameof(NetlifyRedirects);
/// <summary>
/// Specifies the path of the template file that lists your blog posts
/// (which is also typically used as the home page by default).
/// By default this setting is "_Index.cshtml". The file path will be used to
/// read the index template. If you change it, you are responsible for providing
/// this file in your input path (for example, by copying the "_Index.cshtml" from
/// a theme to the specified file name in your input folder).
/// </summary>
/// <type><see cref="FilePath"/> or <see cref="string"/></type>
public const string IndexTemplate = nameof(IndexTemplate);
/// <summary>
/// Specifies the output path of the generated index. By default this
/// is the home page of your site at "index.html". If you change this
/// it lets you provide an alternate home page for your site while still
/// generating a list of posts at the specified output location.
/// </summary>
/// <type><see cref="FilePath"/> or <see cref="string"/></type>
public const string IndexPath = nameof(IndexPath);
/// <summary>
/// Specifies the path where the blog RSS file will be output.
/// The default value is <c>feed.rss</c>. Set to <c>null</c>
/// to prevent generating an RSS feed.
/// </summary>
/// <type><see cref="FilePath"/> or <see cref="string"/></type>
public const string RssPath = nameof(RssPath);
/// <summary>
/// Specifies the path where the blog Atom file will be output.
/// The default value is <c>feed.atom</c>. Set to <c>null</c>
/// to prevent generating an Atom feed.
/// </summary>
/// <type><see cref="FilePath"/> or <see cref="string"/></type>
public const string AtomPath = nameof(AtomPath);
/// <summary>
/// Specifies the path where the blog RDF file will be output.
/// The default value is <c>null</c> which
/// prevents generating an RDF feed.
/// </summary>
/// <type><see cref="FilePath"/> or <see cref="string"/></type>
public const string RdfPath = nameof(RdfPath);
/// <summary>
/// Set to <c>true</c> (the default value is <c>false</c>) to
/// validate all absolute links. Note that this may add considerable
/// time to your generation process.
/// </summary>
/// <type><see cref="bool"/></type>
public const string ValidateAbsoluteLinks = nameof(ValidateAbsoluteLinks);
/// <summary>
/// Set to <c>true</c> (the default value) to
/// validate all relative links.
/// </summary>
/// <type><see cref="bool"/></type>
public const string ValidateRelativeLinks = nameof(ValidateRelativeLinks);
/// <summary>
/// Set to <c>true</c> (the default value is <c>false</c>) to
/// report errors on link validation failures.
/// </summary>
/// <type><see cref="bool"/></type>
public const string ValidateLinksAsError = nameof(ValidateLinksAsError);
/// <summary>
/// The page size for tag archive pages (if not specified, no paging will be used).
/// </summary>
/// <type><see cref="int"/></type>
public const string TagPageSize = nameof(TagPageSize);
/// <summary>
/// The page size for the index page(s) (if not specified, a default of 3 will be used).
/// </summary>
/// <type><see cref="int"/></type>
public const string IndexPageSize = nameof(IndexPageSize);
/// <summary>
/// Specifies whether index pages should be generated (if not specified or <c>false</c>,
/// only the first index page will be generated).
/// </summary>
/// <type><see cref="bool"/></type>
public const string IndexPaging = nameof(IndexPaging);
/// <summary>
/// Specifies whether the full post content should be output on the index page(s)
/// (if not specified or <c>false</c>, only the excerpt will be output).
/// </summary>
/// <type><see cref="bool"/></type>
public const string IndexFullPosts = nameof(IndexFullPosts);
/// <summary>
/// The page size for the archive page (if not specified, no paging will be used).
/// </summary>
/// <type><see cref="int"/></type>
public const string ArchivePageSize = nameof(ArchivePageSize);
/// <summary>
/// Specifies whether the excerpts should be output on the archive page(s)
/// (if not specified or <c>false</c>, only the title and description will be displayed).
/// Note that this also controls displaying excerpts on the tag archive pages.
/// </summary>
/// <type><see cref="bool"/></type>
public const string ArchiveExcerpts = nameof(ArchiveExcerpts);
/// <summary>
/// Specifies whether an archive should be generated (the default is <c>true</c>).
/// </summary>
/// <type><see cref="bool"/></type>
public const string GenerateArchive = nameof(GenerateArchive);
/// <summary>
/// The date of the post.
/// </summary>
/// <type><see cref="DateTime"/> or <see cref="string"/></type>
public const string Published = nameof(Published);
/// <summary>
/// The tags for a given post.
/// </summary>
/// <type><see cref="string"/> or <c>IEnumerable<string></c></type>
public const string Tags = nameof(Tags);
/// <summary>
/// A short description of a particular blog post.
/// </summary>
/// <type><see cref="string"/></type>
public const string Lead = nameof(Lead);
/// <summary>
/// An excerpt of the blog post, automatically set for each document
/// by the recipe.
/// </summary>
/// <type><see cref="string"/></type>
public const string Excerpt = nameof(Excerpt);
/// <summary>
/// Set to <c>false</c> to hide a particular page from the top-level navigation bar.
/// </summary>
/// <type><see cref="bool"/></type>
public const string ShowInNavbar = nameof(ShowInNavbar);
/// <summary>
/// Set by the recipe for tag groups. Contains the set of documents with a given tag.
/// </summary>
/// <type><c>IEnumerable<IDocument></c></type>
public const string Posts = nameof(Posts);
/// <summary>
/// Set by the recipe to the name of the tag for each tag group.
/// </summary>
/// <type><see cref="string"/></type>
public const string Tag = nameof(Tag);
/// <summary>
/// This should be a string or array of strings with the name(s)
/// of root-level folders to ignore when scanning for content pages.
/// Setting this global metadata value is useful when introducing
/// your own pipelines for files under certain folders and you don't
/// want the primary content page pipelines to pick them up.
/// </summary>
/// <type><see cref="string"/> or <c>IEnumerable<string></c></type>
public const string IgnoreFolders = nameof(IgnoreFolders);
/// <summary>
/// Set to <c>true</c> to prepend a configured <c>LinkRoot</c> to all root-relative Markdown links.
/// </summary>
/// <type><see cref="bool"/></type>
public const string MarkdownPrependLinkRoot = nameof(MarkdownPrependLinkRoot);
}