From 6212440f308c9f7403f70d6d8befd7006514bd82 Mon Sep 17 00:00:00 2001 From: f Date: Sun, 26 Sep 2021 19:25:50 -0300 Subject: [PATCH] Generar las URLs igual que en jekyll-locales --- app/models/site.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/models/site.rb b/app/models/site.rb index 58f20745..d9778de7 100644 --- a/app/models/site.rb +++ b/app/models/site.rb @@ -384,7 +384,9 @@ class Site < ApplicationRecord # Si estamos usando nuestro propio plugin de i18n, los posts están # en "colecciones" locales.map(&:to_s).each do |i| - @configuration['collections'][i] = {} + @configuration['collections'][i] = { + 'permalink' => default_locale.to_s == i ? config['permalink'] : [nil, i, config['permalink']].join('/') + } end @configuration