Skip to content
README.md 980 B
Newer Older
Bastien Le Querrec's avatar
Bastien Le Querrec committed
# Silence Website

A simple website and blog using Hugo and GitLab Pages.

## Run local version

```
hugo server
```

## Translate

### Enabling the new language

Edit `config.toml` and add a new section with your language at the end:

```toml
  [languages.xx]
    weight = 2
    contentDir = "content/xx"
```

Please keep `weight = 2`. Update `xx` with the short code of your language.

### Translate interface and settings

Copy `i18n/en.toml` to `i18n/xx.toml` and edit the file to translate some interface strings and update settings.

### Translate content

Bastien Le Querrec's avatar
Bastien Le Querrec committed
Copy `content/en/{_index.md,contribute.md,faq.md,privacy-policy.md,warrant.md}` to `content/xx/`. You can translate the slugs but please do not edit `translationKey`. **Remove `aliases` entries.**
Bastien Le Querrec's avatar
Bastien Le Querrec committed

### Translate blog posts

Create the directory of the blog post at `content/xx/blog/YYYY-MM-DD-key` and copy the `index.md` file. Translating blog posts is not necessary to get your translation enabled.

## License

MIT