diff --git a/.gitignore b/.gitignore
index 76a0bf16c..6e8365f8f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
-_site
-.sass-cache
-Gemfile.lock
+/_site
+/.sass-cache
+/Gemfile.lock
+/vendor
diff --git a/404.html b/404.html
index 29e1c64f7..42a5ca8d3 100644
--- a/404.html
+++ b/404.html
@@ -15,7 +15,7 @@
Derniers articles :
{% for post in site.posts limit:5 %}
-
-
+
{{ post.title }}
diff --git a/Gemfile b/Gemfile
index 933648fba..263d9743a 100644
--- a/Gemfile
+++ b/Gemfile
@@ -2,11 +2,13 @@ source "https://rubygems.org"
gem 'jekyll', '~> 3.6.2'
gem 'rouge', '~> 2.2.1'
gem 'scss_lint', require: false
+gem 'pkg-config'
group :jekyll_plugins do
gem 'algoliasearch-jekyll', '~> 0.9.0'
gem 'elevenlabs-amp-jekyll', '~> 1.1.0'
gem 'jekyll-feed', '~> 0.9.2'
+ gem 'jekyll-multiple-languages-plugin', '~> 1.5.1'
gem 'jekyll-paginate', '~> 1.1.0'
gem 'jekyll-seo-tag', '~> 2.3.0'
end
diff --git a/_config.yml b/_config.yml
index c887a31cf..70c40e030 100644
--- a/_config.yml
+++ b/_config.yml
@@ -16,6 +16,12 @@ social:
- https://stackoverflow.com/jobs/companies/eleven-labs
baseurl:
+# LANGUAGE-SPECIFIC CONFIGURATION
+default_lang: fr
+languages: ["fr", "en"]
+exclude_from_localizations: ["authors", "css", "fonts", "img", "js"]
+localized_posts_dir: _posts
+
# THEME-SPECIFIC CONFIGURATION
theme_settings:
# Meta
@@ -55,14 +61,6 @@ theme_settings:
disqus_shortname: blog-eleven-labs
muut_community_name:
- # Localization strings
- str_follow_on: Suivez-nous sur
- str_rss_follow: Ajoutez-nous à votre veille
- str_email: Email
- str_next: Suivant
- str_prev: Précédent
- str_continue_reading: Lire l'article
-
# Post navigation
post_navigation: false
@@ -90,6 +88,7 @@ sass:
style: :compressed
plugins:
- jekyll-paginate
+ - jekyll-multiple-languages-plugin
- jekyll-seo-tag
- algoliasearch-jekyll
- jekyll-feed
diff --git a/_i18n/en.yml b/_i18n/en.yml
new file mode 100644
index 000000000..16c9459b2
--- /dev/null
+++ b/_i18n/en.yml
@@ -0,0 +1,10 @@
+global:
+ contact_us: Contact us
+ follow_us_on: Follow us on
+ rss_follow: Add us to your watch
+ email: Email
+ next: Next
+ prev: Previous
+ continue_reading: Read article
+ newsletter_subscribe: Subscribe to our newsletter!
+ search_input: Search
\ No newline at end of file
diff --git a/_i18n/fr.yml b/_i18n/fr.yml
new file mode 100644
index 000000000..2cc6ba833
--- /dev/null
+++ b/_i18n/fr.yml
@@ -0,0 +1,10 @@
+global:
+ contact_us: Nous contacter
+ follow_us_on: Suivez-nous sur
+ rss_follow: Ajoutez-nous à votre veille
+ email: Email
+ next: Suivant
+ prev: Précédent
+ continue_reading: Lire l'article
+ newsletter_subscribe: Abonnez-vous à notre newsletter !
+ search_input: Rechercher
\ No newline at end of file
diff --git a/_includes/amp-icons.html b/_includes/amp-icons.html
index e51b20dd3..0aed9a844 100644
--- a/_includes/amp-icons.html
+++ b/_includes/amp-icons.html
@@ -1,6 +1,6 @@
{% if include.data.rss %}
-
-
+
@@ -16,7 +16,7 @@
{% if include.data.github %}
-
-
+
@@ -24,7 +24,7 @@
{% if include.data.twitter %}
-
-
+
@@ -32,7 +32,7 @@
{% if include.data.facebook %}
-
-
+
@@ -40,7 +40,7 @@
{% if include.data.linkedin %}
-
-
+
diff --git a/_includes/amp.scss b/_includes/amp.scss
index 2b3960537..3eb7372b9 100644
--- a/_includes/amp.scss
+++ b/_includes/amp.scss
@@ -1,5 +1,5 @@
// jekyll variables
-$baseurl: '{{ site.baseurl }}';
+$baseurl: '{{ site.baseurl_root }}';
// Settings
@import 'settings/variables';
diff --git a/_includes/author_link.html b/_includes/author_link.html
index 4d38ed51d..5812ac61a 100644
--- a/_includes/author_link.html
+++ b/_includes/author_link.html
@@ -13,7 +13,7 @@
{% else %}
,
{% endif %}
- {{ existingAuthor.title }}
+ {{ existingAuthor.title }}
{% endif %}
{% endfor %}
{% endfor %}
diff --git a/_includes/footer.html b/_includes/footer.html
index 9643e97e4..45a88ff70 100644
--- a/_includes/footer.html
+++ b/_includes/footer.html
@@ -1,7 +1,7 @@
{% if site.theme_settings.footer_text %}