Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Native Multilingual support in Hugo. #1734

Closed
wants to merge 5 commits into from
Closed

Commits on Jul 9, 2016

  1. Native Multilingual support in Hugo.

    Implements:
    * support to render:
      * content/post/whatever.en.md to /en/2015/12/22/whatever/index.html
      * content/post/whatever.fr.md to /fr/2015/12/22/whatever/index.html
    * gets enabled when `Multilingual:` is specified in config.
    * support having language switchers in templates, that know
      where the translated page is (with .Page.Translations)
      (when you're on /en/about/, you can have a "Francais" link pointing to
       /fr/a-propos/)
      * all translations are in the `.Page.Translations` map, including the current one.
    * easily tweak themes to support Multilingual mode
    * renders in a single swift, no need for two config files.
    
    Adds a couple of variables useful for multilingual sites
    
    Adds documentation (content/multilingual.md)
    
    Added language prefixing for all URL generation/permalinking see in the
    code base.
    
    Implements i18n. Leverages the great github.com/nicksnyder/go-i18n lib.. thanks Nick.
    * Adds "i18n" and "T" template functions..
    abourget committed Jul 9, 2016
    Configuration menu
    Copy the full SHA
    ab0270a View commit details
    Browse the repository at this point in the history
  2. Simplified examples.

    .Page.Translations now excludes the current page from in there..
    abourget committed Jul 9, 2016
    Configuration menu
    Copy the full SHA
    a74e29f View commit details
    Browse the repository at this point in the history
  3. Multilingual: TranslatedPages -> AllPages so you can filter them out.

    Applied .AllPages throughout and fixed some tests, refactored a bit to
    avoid massive duplication.
    
    Got rid of unused `possibleTaxonomies`.
    abourget committed Jul 9, 2016
    Configuration menu
    Copy the full SHA
    9c2c5f0 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    af88b8c View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    0e5d549 View commit details
    Browse the repository at this point in the history