i18n
This commit is contained in:
parent
7464440ece
commit
88145b304f
5 changed files with 16 additions and 5 deletions
3
build.sh
3
build.sh
|
@ -8,7 +8,8 @@ local root="$(dirname "${file}")"
|
||||||
cd "${root}"
|
cd "${root}"
|
||||||
pelican \
|
pelican \
|
||||||
--settings "${SETTINGS}" \
|
--settings "${SETTINGS}" \
|
||||||
"${@}"
|
"${@}" && \
|
||||||
|
ln --symbolic '../theme' 'out/fr'
|
||||||
}
|
}
|
||||||
|
|
||||||
main "${@}"
|
main "${@}"
|
||||||
|
|
1
pelican
1
pelican
|
@ -1 +0,0 @@
|
||||||
/sw/pelican
|
|
1
plugins
1
plugins
|
@ -1 +0,0 @@
|
||||||
pelican/plugins
|
|
15
settings.py
15
settings.py
|
@ -1,5 +1,19 @@
|
||||||
|
PELICAN = '/data/software/pelican'
|
||||||
|
|
||||||
|
PLUGIN_PATHS = [f'{PELICAN}/plugins']
|
||||||
|
THEMES = f'{PELICAN}/themes'
|
||||||
|
|
||||||
|
PLUGINS = ['i18n_subsites']
|
||||||
|
THEME = f'{THEMES}/pelican-twitchy'
|
||||||
|
|
||||||
SITEURL = ''
|
SITEURL = ''
|
||||||
|
|
||||||
DEFAULT_LANG = 'en'
|
DEFAULT_LANG = 'en'
|
||||||
|
I18N_SUBSITES = {
|
||||||
|
'fr': {
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
SITENAME = 'rwx.work'
|
SITENAME = 'rwx.work'
|
||||||
AUTHOR = 'mspe'
|
AUTHOR = 'mspe'
|
||||||
TIMEZONE = 'UTC'
|
TIMEZONE = 'UTC'
|
||||||
|
@ -8,7 +22,6 @@ DEFAULT_METADATA = {
|
||||||
}
|
}
|
||||||
|
|
||||||
PATH = 'in'
|
PATH = 'in'
|
||||||
THEME = 'themes/pelican-twitchy'
|
|
||||||
|
|
||||||
DELETE_OUTPUT_DIRECTORY = True
|
DELETE_OUTPUT_DIRECTORY = True
|
||||||
OUTPUT_PATH = 'out'
|
OUTPUT_PATH = 'out'
|
||||||
|
|
1
themes
1
themes
|
@ -1 +0,0 @@
|
||||||
pelican/themes
|
|
Loading…
Reference in a new issue