Skip to content
/ sitegen Public

Simple static site generator with Handlebars, Markdown and YAML support

License

Notifications You must be signed in to change notification settings

perlun/sitegen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

Examples of sites using sitegen

Building sitegen

$ dotnet build

config.yaml format

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.

Variables available in Handlebars files

  • now - the current DateTime, as a .NET DateTime object.
  • site - the site section in config.yaml
  • blog_posts - a list of all blog posts.

Similar projects

See also the following C#/.NET-based static site generators:

License

MIT

About

Simple static site generator with Handlebars, Markdown and YAML support

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published