This site is built with Lektor.
It has a bunch of dependencies, so do npm install
and then npm run build
.
grunt
will watch for changes to your SCSS files, and also icons (see svgstore).
Since this is an organization Github page, the deploy has to be done on the master branch; therefore, all the edits have to be done on the source branch. To do so, after cloning the repo with git clone
, enter the folder and run git checkout source
.
In order to add a translation to the site, we need to:
- add the language to
project.lektorproject
; - add the new language to
databags/languages.json
; - add translations to
databags/global-content.ini
anddatabags/main-nav.ini
.
Then, to translate the content we can:
- manually duplicate each
contents.lr
file in thecontent/
folder (and its subfolders) and save it with the language code in the file name (likecontents+et.lr
), or - use the
admin
interface when running the site locally, e.g. by runninglektor server
and openinglocalhost:5000/admin
on a browser.
WARNING: since this is an organization Github page, this command will deploy on the master branch. (See the Editing section for details).
lektor deploy
will deploy to the master branch, putting changes live, if you have deploy permissions.