From c1c82e397f1e24c93dbdc4f38a9d2a787822e842 Mon Sep 17 00:00:00 2001 From: "Collin J. Doering" Date: Wed, 17 Dec 2014 01:40:58 -0500 Subject: [PATCH] Don't appcache empty file pages/blog.html This causes a bug when using the android browser. Specifically, because pages/blog.html is appcached it always prefers the appcached version and thus loads an empty blog (unless you explicit request pages/blog1.html) This empty file is required while generating the navigation. There seems to be no way to not write a file once within the Rules monad (or at least it's not simple). Signed-off-by: Collin J. Doering --- src/site.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/site.hs b/src/site.hs index 8d9f4dc..3ce126e 100644 --- a/src/site.hs +++ b/src/site.hs @@ -114,7 +114,7 @@ main = do ("posts/**" .&&. hasNoVersion) (\n -> fromCapture "pages/blog*.html" (show n)) - pageIds <- getMatches "pages/**" + pageIds <- getMatches ("pages/**" .&&. complement "pages/blog.markdown") fontIds <- getMatches "fonts/**" imageIds <- getMatches "images/**" cssIds <- getMatches "css/**"