-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathconfig.wyam
37 lines (31 loc) · 1.29 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
using Wyam.Web.Pipelines;
Settings[Keys.Host] = "kamranicus.com";
Settings[Keys.LinksUseHttps] = true;
Settings[BlogKeys.Title] = "Kamranicus | Kamran Ayub";
Settings[BlogKeys.Description] = "Kamran Ayub";
Settings[BlogKeys.Intro] = "I'm a technologist, speaker, and Pluralsight author and I specialize in building full-stack solutions with a focus on modern web technology and cloud native architecture.";
Settings["FeedUrl"] = "http://feeds.feedburner.com/Kamranicus";
Settings[BlogKeys.CaseInsensitiveTags] = true;
Settings[BlogKeys.AtomPath] = "atom.xml";
Settings[BlogKeys.IndexPageSize] = 6;
Settings[BlogKeys.IgnoreFolders] = new string[] {
"guides/*.md"
};
var Guides = new Pages(
"Guides",
new PagesSettings
{
PagesPattern = ctx => "guides",
MarkdownConfiguration = ctx => ctx.String(BlogKeys.MarkdownConfiguration),
MarkdownExtensionTypes = ctx => ctx.List<Type>(BlogKeys.MarkdownExtensionTypes),
ProcessIncludes = (doc, ctx) => doc.Bool(BlogKeys.ProcessIncludes)
});
var RenderGuides = new RenderPages(
"RenderGuides",
new RenderPagesSettings
{
Pipelines = new string[] { Guides },
Layout = (doc, ctx) => "/_GuideLayout.cshtml"
});
Pipelines.InsertAfter("Pages", "Guides", Guides);
Pipelines.InsertAfter("RenderPages", "RenderGuides", RenderGuides);