How to make a multi-language blog

927 views
Skip to first unread message

Felipe Cypriano

unread,
Nov 29, 2011, 8:27:17 PM11/29/11
to jeky...@googlegroups.com
Hello,

I'm thinking if there's a way to make a multi-language (multi-index) blog using Jekyll (under Octopress). I already have a blog and I'd like to use all the same configurations in all the languages I'll write. But each language would have it's own index.

Today my file system configuration is:

└── source
    ├── _includes
    ├── _layouts
    ├── _posts
    └── index.html

My idea is to have a sub-dir inside source for the new language, something like this:

└── source
    ├── _includes
    ├── _layouts
    ├── _posts
    ├── br
        ├── _posts
        └── index.html
    └── index.html

The 'br' folder I'll put my portuguese posts and they will be accessed using http://myblog.com/br/ (this would give the index for the portuguese only posts).

Is there a way to do this? Did I made myself clear?


Regards,
---
Felipe Cypriano

Jerry

unread,
Dec 16, 2011, 11:40:54 PM12/16/11
to jeky...@googlegroups.com
I was also thinking about this, I want to write book with jekyll, so it should have a tree structor, just like

└── source
    ├── _includes
    ├── _layouts
    ├── _posts
    ├── part1
        ├── _posts
            ├── 1.1
            ├── 1.2
            ├── 1.3
        └── index.html
    ├── part2
        ├── _posts
            ├── 1.1
            ├── 1.2
            ├── 1.3
        └── index.html
    └── index.html

Any ideas?

Thanks

-- 
Jerry
--
You received this message because you are subscribed to the Google Groups "jekyll.rb" group.
To post to this group, send email to jeky...@googlegroups.com.
To unsubscribe from this group, send email to jekyll-rb+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/jekyll-rb?hl=en.

Kwpolska

unread,
Dec 31, 2011, 5:37:00 AM12/31/11
to jeky...@googlegroups.com
> --
> You received this message because you are subscribed to the Google Groups
> "jekyll.rb" group.
> To post to this group, send email to jeky...@googlegroups.com.
> To unsubscribe from this group, send email to
> jekyll-rb+...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/jekyll-rb?hl=en.

It is possible with a few hacks. They include double posts per page
and if/unless category == '[other language category name]'. I used
something like that on my blog for a while. Feel free to borrow some
of my code from here:
https://github.com/Kwpolska/kwsblog/tree/4b548181923769811224ac215ee1060f55b965a8

--
Kwpolska <http://kwpolska.tk>
stop html mail      | always bottom-post
www.asciiribbon.org | www.netmeister.org/news/learn2quote.html
GPG KEY: 5EAAEA16   | Arch Linux x86_64, zsh, mutt, vim.
# vim:set textwidth=70:

Reply all
Reply to author
Forward
0 new messages