
26 changed files with 124 additions and 128 deletions
@ -1,4 +1,4 @@ |
|||
import Green |
|||
|
|||
main :: IO () |
|||
main = author |
|||
main = authorMain |
|||
|
@ -1,4 +1,4 @@ |
|||
import Green |
|||
|
|||
main :: IO () |
|||
main = site |
|||
main = siteMain |
|||
|
@ -1,37 +0,0 @@ |
|||
module Green.Content (content) where |
|||
|
|||
import Green.Common |
|||
import Green.Config |
|||
import Green.Content.Blog |
|||
import Green.Content.BrokenLinks |
|||
import Green.Content.Code |
|||
import Green.Content.Css |
|||
import Green.Content.Download |
|||
import Green.Content.Feed |
|||
import Green.Content.HomePage |
|||
import Green.Content.Image |
|||
import Green.Content.Js |
|||
import Green.Content.Page |
|||
import Green.Content.Robot |
|||
import Green.Content.Sitemap |
|||
import Green.Content.Template |
|||
import Green.Template.Custom.Context |
|||
|
|||
content :: SiteConfig -> Rules () |
|||
content config = do |
|||
let context = customContext config |
|||
brokenLinks |
|||
images |
|||
js |
|||
scss config |
|||
downloads |
|||
codeDep <- code |
|||
templateDep <- templates |
|||
rulesExtraDependencies [codeDep, templateDep] do |
|||
blog context |
|||
feed |
|||
homePage context |
|||
pages context |
|||
robotsTxt context |
|||
sitemap context |
|||
brokenLinks |
@ -0,0 +1,36 @@ |
|||
module Green.Site where |
|||
|
|||
import Green.Common |
|||
import Green.Config |
|||
import Green.Site.Blog |
|||
import Green.Site.BrokenLinks |
|||
import Green.Site.Code |
|||
import Green.Site.Css |
|||
import Green.Site.Download |
|||
import Green.Site.Feed |
|||
import Green.Site.HomePage |
|||
import Green.Site.Image |
|||
import Green.Site.Js |
|||
import Green.Site.Page |
|||
import Green.Site.Robots |
|||
import Green.Site.Sitemap |
|||
import Green.Site.Templates |
|||
import Green.Template.Custom.Context |
|||
|
|||
site :: SiteConfig -> Rules () |
|||
site config = do |
|||
let context = customContext config |
|||
brokenLinks |
|||
images |
|||
js |
|||
scss config |
|||
downloads |
|||
_codeDep <- code |
|||
_templateDep <- templates |
|||
blog context |
|||
feed |
|||
homePage context |
|||
pages context |
|||
robotsTxt context |
|||
sitemap context |
|||
brokenLinks |
@ -1,4 +1,4 @@ |
|||
module Green.Content.BrokenLinks (brokenLinks) where |
|||
module Green.Site.BrokenLinks where |
|||
|
|||
import Green.Common |
|||
import Hakyll (preprocess) |
@ -1,4 +1,4 @@ |
|||
module Green.Content.Code (code) where |
|||
module Green.Site.Code where |
|||
|
|||
import Green.Common |
|||
|
@ -1,4 +1,4 @@ |
|||
module Green.Content.Css (scss) where |
|||
module Green.Site.Css where |
|||
|
|||
import Green.Common |
|||
import Green.Config |
@ -1,4 +1,4 @@ |
|||
module Green.Content.Download (downloads) where |
|||
module Green.Site.Download where |
|||
|
|||
import Green.Common |
|||
|
@ -1,4 +1,4 @@ |
|||
module Green.Content.Feed (feed) where |
|||
module Green.Site.Feed where |
|||
|
|||
import Green.Common |
|||
|
@ -1,4 +1,4 @@ |
|||
module Green.Content.Image (images) where |
|||
module Green.Site.Image where |
|||
|
|||
import Green.Common |
|||
|
@ -1,4 +1,4 @@ |
|||
module Green.Content.Js (js) where |
|||
module Green.Site.Js where |
|||
|
|||
import qualified Data.ByteString.Lazy.Char8 as C |
|||
import Hakyll |
@ -1,4 +1,4 @@ |
|||
module Green.Content.Page (pages) where |
|||
module Green.Site.Page where |
|||
|
|||
import Green.Common |
|||
import Green.Route |
@ -1,4 +1,4 @@ |
|||
module Green.Content.Robot (robotsTxt) where |
|||
module Green.Site.Robots where |
|||
|
|||
import Green.Common |
|||
import Green.Template |
@ -1,8 +1,8 @@ |
|||
module Green.Content.Sitemap (sitemap) where |
|||
module Green.Site.Sitemap where |
|||
|
|||
import Green.Common |
|||
import Green.Compiler (loadExistingSnapshots) |
|||
import Green.Content.Blog (loadPublishedPosts) |
|||
import Green.Site.Blog (loadPublishedPosts) |
|||
import Green.Template |
|||
import Hakyll (recentFirst) |
|||
|
@ -1,4 +1,4 @@ |
|||
module Green.Content.Template (templates) where |
|||
module Green.Site.Templates where |
|||
|
|||
import Green.Common |
|||
import Green.Template |
Loading…
Reference in new issue