I quickly tried to reproduce it here, the tag files *did* seem to get
written, however, the preview server could not find them. Anyway, I
suppose this depends a lot on the used file system... could you give
us some more details?
* what are the tags?
* what filenames *does* hakyll generate?
* if possible, could you provide the source code?
Cheers,
Jasper
> match "tags/*" $ do
> route $ customRoute tagToRoute
> ...
> tagToRoute :: Identifier -> FilePath
> tagToRoute = (++".html") . map toLower . stripDiacritics . toFilePath
>
> stripDiacritics :: String -> String
> stripDiacritics str = foldl (\s (f,t) -> replace f t s) str diacritics
>
> replace :: Eq a => a -> a -> [a] -> [a]
> replace _ _ [] = []
> replace f r (x:xs)
> | f == x = r : replace f r xs
> | otherwise = x : replace f r xs
>
> diacritics :: [(Char, Char)]
> diacritics = [ ('ě', 'e'), ('š', 's'), ('č', 'c'), ('ř', 'r'),
> ('ž', 'z'), ('ý', 'y'), ('á', 'a'), ('í', 'i'),
> ('é', 'e')]
Haisheng Wu píše v So 16. 04. 2011 v 19:34 -0700:
Hello,
You can use composeRoutes [1] for this purpose
[1]: http://jaspervdj.be/hakyll/reference/Hakyll-Core-Routes.html
Cheers,
Jasper
Haven't had any access to my development machine. I hope to resolve it tomorrow.
Cheers,
Jasper
I'm tested at platform: ubuntu 10.11, ghc-7.0.3, hakyll-3.2.6.1
You could find near line 48 in order to reproduce the issue.
I'm trying to dig the cause. If you would like to help it out, that
will be great!
Thanks.
-Simon
On Apr 17 2011, 2:38 pm, Jasper Van der Jeugt <jasper...@gmail.com>
wrote:
> Hello,
>
> I quickly tried to reproduce it here, the tag files *did* seem to get
> written, however, the preview server could not find them. Anyway, I
> suppose this depends a lot on the used file system... could you give
> us some more details?
>
> * what are the tags?
> * what filenames *does* hakyll generate?
> * if possible, could you provide the source code?
>
> Cheers,
> Jasper
>
>
>
>
>
>
>
> On Sun, Apr 17, 2011 at 4:34 AM, Haisheng Wu <fre...@gmail.com> wrote:
>
> > What if I neednon-Englishtags, for instance Chinese tags, what I