Created
March 16, 2017 20:11
-
-
Save Vladekk/967fae1b9ead073175c4c0012bbe4ea7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MinifyHtml(), | |
Pipelines.Add("Homepage", | |
ReadFiles ("_layouts/index.cshtml"), | |
FrontMatter (Yaml()), | |
Meta ("canonical", "/"), | |
Razor ().WithViewStart ("_layouts/_ViewStart.cshtml"), | |
Append ( | |
ReadFiles ("_sections/*.md"), | |
FrontMatter (Yaml()), // Move the frontmatter to metadata | |
Markdown (), // Convert it to HTML | |
OrderBy (@doc ["weight"]), // Order for consistency | |
Combine () // Combine all the _sections before appending | |
), | |
WriteFiles () | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment