Quoting William Morgan <[EMAIL PROTECTED]>:
> I think this is the best (most extensible) solution. Yep .. Thinking about it, this is the most extensible one, and could benefit to others too ;) > How do you structure your dual-language posts? I presume you have > 'content-en' and 'content-fr' fields within each entry. In fact, the yaml layout is the same (title and content entries) but instead of being text, they are hashes, with an entry per language ( en and fr in my case ), with the associated title/content. > So I would add skel_index_fr and skel_index_en methods that looked like this: > > def skel_index_fr( path_storage ) > skel_index( path_storage ) do |page, entries| > yield :page => page, :entries => entries.map do |e| > f = e.dup > f.content = e.content_fr > f.summary = e.summary_fr > f > end > end > end > > (maybe the dup'ing is unnecessary) Yep .. I could do this to generate 2 different blogs ... my current solution is to have 1 single blog with 'dynamic' switch (in fact a simple javascript function changing the display to visible for all item with class 'en' or 'fr') ... But I was thinking about generating 2 different blogs (because for example technorati does not 'validate' my page on ping), and your solution is the simplest one :) > Then you don't need anything else for RSS or for the main page. But you > will have to change the name to an underscore, as you mention---or > modify build_pages to replace hyphens with underscores as well. (I think > that'd be ok.) > I'm going to have a quick look at this tonight or tomorow ;) Thanks a lot ! Frederick Ros aka Sleeper -- [EMAIL PROTECTED] _______________________________________________ Hobix-is-the-way mailing list [email protected] http://rubyforge.org/mailman/listinfo/hobix-is-the-way
