haggis-0.1.1.1: A static site generator with blogging/comments support

Safe HaskellNone

Text.Haggis.Types

Contents

Synopsis

A haggis configuration.

data HaggisConfig Source

Constructors

HaggisConfig 

Fields

sitePath :: String

Path to where the files are hosted, e.g: foo, , foobar/, defaults to /

defaultAuthor :: Maybe String

Default author, so you don't have to put an author in every post's metadata.

siteHost :: Maybe String

Hostname where the blog is hosted, used for generating RSS feed links. E.g. blog.example.com

rssTitle :: Maybe String
 
rssDescription :: Maybe String
 
sqlite3File :: Maybe FilePath

Sqlite3 file name, for comments.

siteTemplates :: SiteTemplates
 

Instances

Container for the required site templates

data SiteTemplates Source

Constructors

SiteTemplates 

Fields

root :: [Node]
 
single :: [Node]
 
multiple :: [Node]
 
tagsTemplate :: [Node]
 
archivesTemplate :: [Node]
 

Instances

Representation of a single haggis page

Representation of multiple pages (e.g. an index.html for a directory,

data MultiPage Source

Constructors

MultiPage 

Instances

The type of the pages

conversions for MultiPageTypes

A comment on a haggis post