Content_types
Content types for the Memoir static site generator
type frontmatter = {
title : string;
description : string option;
date : string option;
updated : string option;
draft : bool;
layout : string option;
slug : string option;
featured_image : string option;
}
Frontmatter metadata for content pages
val empty_frontmatter :
frontmatter
Default empty frontmatter
type content_page = {
path : string;
frontmatter :
frontmatter;
content : string;
html_content : string option;
url_path : string;
}
A content page with frontmatter and markdown content
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 = {
source_path : string;
output_path : string;
url_path : string;
content_type :
content_type;
}
Route information for generating pages