Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed site.hs wildcard conflict in project listing function

  • Loading branch information...
commit 5c60cfca0d9d176a93b691cf6a00f7e4a7874424 1 parent 11534c1
Ethan Schoonover authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 bin/site.hs
8 bin/site.hs
View
@@ -28,7 +28,7 @@ main = hakyll $ do
compile resource $ copyFileCompiler
-----------------------------------------------------------------------
--- compile templates and pages
+-- compile templates
-----------------------------------------------------------------------
compile "templates/*" templateCompiler
@@ -62,21 +62,21 @@ main = hakyll $ do
create "index.html" $ constA mempty
>>> arr (setField "pagetitle" "Ethan Schoonover")
>>> requireAllA "posts/***.md" (id *** arr newest10 >>> postList)
- >>> requireAllA "projects/***.md" projectList
+ >>> requireAllA "projects/*/*.md" projectList
>>> applyTemplateCompiler "templates/home.html"
>>> applyTemplateCompiler "templates/default.html"
route "posts/index.html" $ idRoute
create "posts/index.html" $ constA mempty
>>> arr (setField "pagetitle" "Posts - Ethan Schoonover")
- >>> requireAllA "posts/***.md" postList
+ >>> requireAllA "posts/*/*.md" postList
>>> applyTemplateCompiler "templates/posts.html"
>>> applyTemplateCompiler "templates/default.html"
route "projects/index.html" $ idRoute
create "projects/index.html" $ constA mempty
>>> arr (setField "pagetitle" "Projects - Ethan Schoonover")
- >>> requireAllA "projects/***.md" projectList
+ >>> requireAllA "projects/*/*.md" projectList
>>> applyTemplateCompiler "templates/projects.html"
>>> applyTemplateCompiler "templates/default.html"
Please sign in to comment.
Something went wrong with that request. Please try again.