harp / harpjs.com

The website for Harp, the static web server with built-in preprocessing.
http://harpjs.com
30 stars 60 forks source link

Website translation #44

Open caiovaccaro opened 9 years ago

caiovaccaro commented 9 years ago

Hey!

I would like to translate the site to Brazilian Portuguese. Is it possible?

Thanks, C.

caiovaccaro commented 9 years ago

One way I see this working is to have a content folder and languages folder with duplicate index files, like:

/content
  /en-us
    Markdown files
  /pt-br
    Markdown files
/pt-br
  index.jade
  /docs
    index.jade

The default language (en-us) would be at the root folder. And .jade files would pull the content from .md files.

Of course this is just a suggestion of one way to do it using just harp.