mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-26 00:56:21 +00:00
Generar las URLs igual que en jekyll-locales
This commit is contained in:
parent
4d481b1d73
commit
6212440f30
1 changed files with 3 additions and 1 deletions
|
@ -384,7 +384,9 @@ class Site < ApplicationRecord
|
||||||
# Si estamos usando nuestro propio plugin de i18n, los posts están
|
# Si estamos usando nuestro propio plugin de i18n, los posts están
|
||||||
# en "colecciones"
|
# en "colecciones"
|
||||||
locales.map(&:to_s).each do |i|
|
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
|
end
|
||||||
|
|
||||||
@configuration
|
@configuration
|
||||||
|
|
Loading…
Reference in a new issue