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..7814d2dad 100644
--- a/Gemfile
+++ b/Gemfile
@@ -7,6 +7,7 @@ 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', :git => 'git://github.com/eko/jekyll-multiple-languages-plugin.git'
gem 'jekyll-paginate', '~> 1.1.0'
gem 'jekyll-seo-tag', '~> 2.3.0'
end
diff --git a/Rakefile b/Rakefile
index 2b31226b5..5cd531481 100644
--- a/Rakefile
+++ b/Rakefile
@@ -26,7 +26,7 @@ end
# push to algolia
task :algolia_push do
if ENV['TRAVIS_BRANCH'] == 'master' && ENV['TRAVIS_PULL_REQUEST'] == "false"
- jekyll('algolia push')
+ jekyll('algolia push --config _config.yml,_algolia.yml')
end
end
diff --git a/_algolia.yml b/_algolia.yml
new file mode 100644
index 000000000..feef5fcdb
--- /dev/null
+++ b/_algolia.yml
@@ -0,0 +1,11 @@
+# ALGOLIA
+algolia:
+ application_id: '5IGTHBX5JS'
+ index_name: 'blog_eleven'
+ excluded_files:
+ - amp
+
+# Trick to only build default site (and not each language)
+default_lang: fr
+languages: ["fr"]
+exclude_from_localizations: ["authors", "css", "fonts", "img", "js", "_posts"]
\ No newline at end of file
diff --git a/_config.yml b/_config.yml
index c887a31cf..39b4a3d37 100644
--- a/_config.yml
+++ b/_config.yml
@@ -14,7 +14,13 @@ social:
- https://www.youtube.com/channel/UCt_NukjmUm4whjmbMuZ0MMw
- https://github.com/eleven-labs
- https://stackoverflow.com/jobs/companies/eleven-labs
-baseurl:
+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:
@@ -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
@@ -73,13 +71,6 @@ theme_settings:
paginate: 10
paginate_path: "/blog/page:num"
-# ALGOLIA
-algolia:
- application_id: '5IGTHBX5JS'
- index_name: 'blog_eleven'
- excluded_files:
- - amp
-
exclude: [vendor, _authors/TEMPLATE-AUTOR]
# BUILD SETTINGS
@@ -90,6 +81,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 %}