Module Content_types

Content types for the Memoir static site generator

type frontmatter = {
  1. title : string;
  2. description : string option;
  3. date : string option;
  4. updated : string option;
  5. tags : string list;
  6. draft : bool;
  7. layout : string option;
  8. slug : string option;
  9. author : string option;
  10. featured_image : string option;
}

Frontmatter metadata for content pages

val empty_frontmatter : frontmatter

Default empty frontmatter

type content_page = {
  1. path : string;
  2. frontmatter : frontmatter;
  3. content : string;
  4. html_content : string option;
  5. url_path : string;
}

A content page with frontmatter and markdown content

type content_type =
  1. | Page
  2. | Post
  3. | Project
  4. | Journal

Content type for different sections of the site

val content_type_of_string : string -> content_type

Convert string to content_type

val string_of_content_type : content_type -> string

Convert content_type to string

type route = {
  1. source_path : string;
  2. output_path : string;
  3. url_path : string;
  4. content_type : content_type;
}

Route information for generating pages