Giter Site home page Giter Site logo

xhain-hackspace.github.io's Introduction

xHain hack+makespace

Translation

Translated versions of German pages have a .en before the file extension (this is a convention and not a requirement).

Example:

  • German: support.html
  • English: support.en.html

This is only to keep the files together internally. The public-facing pages (i.e. the ones generated by Jekyll) should instead be placed in language-specific directories (or the root directory / for German files).

Example:

  • German: /support.html
  • English: /en/support.html

Jekyll doesn't do this automatically, instead you have to manually set the permalink property in the metadata. See support.en.html for an example of what the metadata block of translated pages should look like.

By default, all pages have a link to the translated version at the top right of the page. If the conventions above are followed, these can be generated automatically. Otherwise, the links to translated pages can be overriden or disabled using the translations metadata property.

Examples:

Consider a page at /news/2016/01/01/beispiel.html. Its English version can be found at /en/news/2016/01/01/example.html rather than /en/…/beispiel.html. To link the two:

# In _posts/2016-01-01-beispiel.html:
translations:
  en: /en/news/2016/01/01/example.html

# In _posts/2016-01-01-beispiel.en.html:
translations:
  de: /news/2016/01/01/beispiel.html

If a page doesn't have a translated version, you can disable the link by passing false instead of the URI, like so:

# On a German-language page without an English translation:
translations:
  en: false

xhain-hackspace.github.io's People

Contributors

pbock avatar rhotep avatar samwise007 avatar martin1001 avatar ansgarschmidt avatar stefanw avatar

Stargazers

 avatar  avatar Björn Reimer avatar SebastianNordhoff avatar Tasmo avatar

Watchers

ligi avatar James Cloos avatar  avatar  avatar  avatar  avatar  avatar  avatar

xhain-hackspace.github.io's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.