Jean-Charles Le Tousey website https://jcletousey.dev
  • SCSS 36.6%
  • Nunjucks 31%
  • JavaScript 28.9%
  • CSS 3.5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-07-29 18:13:15 +02:00
.cache Change cache items 2026-06-05 15:22:05 +02:00
_cache Update webmentions 2024-10-18 22:00:02 +02:00
src Add a bookmark & a like 2026-07-29 18:13:15 +02:00
.gitignore Ignore .npmrc file 2025-03-13 12:26:00 +01:00
CHANGELOG.md Add Mastodon author meta tag 2025-03-13 18:09:07 +01:00
eleventy.config.js Use Eleventy images plugin 2026-05-18 22:21:36 +02:00
netlify.toml Remove build command from netlify toml 2024-10-21 22:32:56 +02:00
package-lock.json Use Eleventy images plugin 2026-05-18 22:21:36 +02:00
package.json Use Eleventy images plugin 2026-05-18 22:21:36 +02:00
README.md Update README accordingly to the new i18n usage 2023-03-27 00:09:29 +02:00

My personal website

Requirements

  • NodeJs
  • NPM (included with NodeJs)

Getting started

  • Clone this repository git clone https://github.com/jcletousey/personal-website
  • cd into the project directory and run npm install
  • Once all the dependencies are installed run npm start
  • Open your browser at http://localhost:8080

Features

  • Blog
  • Internationalization

How to configure the internationalization

The internationalization is used to provide links to users in order for them to switch to another supported language.

This featuref is provided by the Eleventy i18n plugin.

If you want to use it as is, you have to localize your data. It means that you have to write and organize your content accordingly to the languages you want to provide.

What you have to do is to apply the following instructions:

  1. The default language is English but you can change it in the .eleventy.js file at the root of the project.
module.exports = function (eleventyConfig) {
  // Plugins
  ...
  eleventyConfig.addPlugin(EleventyI18nPlugin, {
    defaultLanguage: "en",
  });
  1. Declare your locales in data/site.json
{
  ...,
  "locales": {
    "en": "English",
    "fr": "Français"
  }
}
  1. Create the corresponding directories in the content directory. For example, with an english and a french locales:
|- src
   |- content
      |- en
         |- blog
         |- pages
      |- fr
         |- blog
         |- pages
      |- ...
  1. Then, you have to create files with the same name across the locales folders to get automatic links for the translations.

For example:

|- src
   |- content
      |- en
         |- blog
            |- my-first-post.md
            |- my-second-post.md
            |- my-third-post.md # This won't have translation
         |- pages
            |- my-page.md
      |- fr
         |- blog
            |- my-first-post.md
            |- my-second-post.md
            |- mon-article.md # This won't have translation
         |- pages
            |- my-page.md
      |- ...