Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
39 lines (33 sloc) 1.36 KB
// code: language=csharp insertSpaces=true tabSize=4
#recipe Blog
#theme BlogTemplate
#nuget Wyam.Minification
#nuget JupiterNebula.Wyam.Shortcodes.TabBlock
Settings[Keys.Host] = "jupiternebula.com";
Settings[BlogKeys.Title] = "JupiterNebula";
Settings[BlogKeys.Intro] = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus euismod quis augue vel hendrerit. Duis at congue lectus. Vestibulum ornare.";
Settings[BlogKeys.Description] = "Josh Taylor's Blog";
Settings[BlogKeys.IndexPaging] = true;
Settings[BlogKeys.IndexPageSize] = 3;
Settings[BlogKeys.NetlifyRedirects] = true;
// Run the minifiers unless "minify" is set to false via the command line options.
// MinifyHtml() interferes with live reload, so make sure "minify" is set to false
// while developing using Wyam's embedded HTTP server
if (Settings.Bool("minify", true))
{
Pipelines.Add("Minify CSS",
Documents().Where((doc, ctx) => doc.Metadata.String(Keys.DestinationFileExt) == ".css"),
MinifyCss(),
WriteFiles()
);
Pipelines.Add("Minify JS",
Documents().Where((doc, ctx) => doc.Metadata.String(Keys.DestinationFileExt) == ".js"),
MinifyJs(),
WriteFiles(".js")
);
Pipelines.Add("Minify HTML",
Documents().Where((doc, ctx) => doc.Metadata.String(Keys.DestinationFileExt) == ".html"),
MinifyHtml(),
WriteFiles()
);
}
You can’t perform that action at this time.