Fixed double entry of /index.html in manifest
Because index.html is now generated as part of the "pages/*" rule (via "pages/home.html") and there is no shell index page which then is filled with content using javascript, "index.html" does not need to be listed explicitly for manifest.appcache generation. Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
This commit is contained in:
parent
53c782d5ab
commit
deb81e9cbd
|
@ -160,8 +160,7 @@ main = do
|
|||
randomStr = show . abs . fst $ randomNum
|
||||
manifestStart = [ "CACHE MANIFEST"
|
||||
, "# " ++ randomStr ]
|
||||
manifestCacheSingles = [ "/index.html"
|
||||
, "/default.css" ]
|
||||
manifestCacheSingles = [ "/default.css" ]
|
||||
paginatedPostsCache = take 2 $ map (\(n,_) -> "/blog" ++ (show n) ++ ".html") $ toList $ paginateMap paginatedPosts
|
||||
tagsCache = concatMap (\(t,ids) -> take 2 $ ["/tags/" ++ t ++ show n ++ ".html" | n <- [1..length $ paginateEvery numPaginatePages ids]]) $ tagsMap tags
|
||||
manifestCacheFromIds = filter (not . null) $ fmap (maybe "" ("/"++)) manifestCacheRoutesMaybe
|
||||
|
|
Loading…
Reference in New Issue