Skip to content

ReliefApplications/ena-website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

93 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This ENA website is based on the [CTP website](https://github.com/AmericanRedCross/ctp-website/blob/gh-pages/_includes/toolkit.html#L426.

ctp-website

Dropbox structure

For the document API to work the Dropbox folder hierarchy needs to be as follows:

  • TODO: add folder structure

Adding Language support

The site is configured to support 2-letter core language codes. So english is 'en' not 'en-US' and/or 'en-GB'. Using a longer code will not function.

  1. tell app config the language exists
  2. add 2-letter language code to authorized_locales array in _config.yml
  3. include locale file (to support date/time localization)
  4. several already in place (in _locales dir), otherwise get from here
  5. include _data/2-letter code.yml to support site content translations
  6. copy _data/en.yml, then update text values
  7. note that the url for the nav items can be updates for your language. this needs to align with the permalink in the page frontmatter (see item 4.2 below)
  8. create folder of page templates
  9. copy 'en' dir, rename copy as your 2-letter language code
  10. in frontmatter for all templates there within, you need to add the language code and pagename to the permalink (i.e. /toolkit/ becomes /fr/boite-a-outils/ for the french translation)

About

ENA website inspired by the CTP website

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •