$ dotnet build
config:
source_dir: src
layouts_dir: src/_layouts
output_dir: out
posts_dir: src/_posts
multiple_languages: true
site:
title: halleluja.nu
See the TopLevelConfig class for details. YAML keys are converted from snake_case_
to PascalCase
, so source_dir
in the config.yaml
corresponds to the SourceDir
property in TopLevelConfig and so forth.
now
- the currentDateTime
, as a .NET DateTime object.site
- thesite
section inconfig.yaml
blog_posts
- a list of all blog posts.
See also the following C#/.NET-based static site generators:
- https://github.com/krompaco/record-collector - built on top of ASP.NET Core MVC
- https://github.com/tomzorz/lastpage - .NET Core static website generator based on Mustachio