5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-22 04:26:22 +00:00

Generar las URLs igual que en jekyll-locales

This commit is contained in:
f 2021-09-26 19:25:50 -03:00
parent 4d481b1d73
commit 6212440f30

View file

@ -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