From 88145b304ffb5177c3e84e032730a31626bd21b4 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Fri, 18 Mar 2022 00:02:33 +0100 Subject: [PATCH] i18n --- build.sh | 3 ++- pelican | 1 - plugins | 1 - settings.py | 15 ++++++++++++++- themes | 1 - 5 files changed, 16 insertions(+), 5 deletions(-) delete mode 120000 pelican delete mode 120000 plugins delete mode 120000 themes diff --git a/build.sh b/build.sh index dc206c2..4a004be 100755 --- a/build.sh +++ b/build.sh @@ -8,7 +8,8 @@ local root="$(dirname "${file}")" cd "${root}" pelican \ --settings "${SETTINGS}" \ - "${@}" + "${@}" && \ + ln --symbolic '../theme' 'out/fr' } main "${@}" diff --git a/pelican b/pelican deleted file mode 120000 index d65c9c4..0000000 --- a/pelican +++ /dev/null @@ -1 +0,0 @@ -/sw/pelican \ No newline at end of file diff --git a/plugins b/plugins deleted file mode 120000 index b84f3aa..0000000 --- a/plugins +++ /dev/null @@ -1 +0,0 @@ -pelican/plugins \ No newline at end of file diff --git a/settings.py b/settings.py index f15f2f2..f92d50f 100644 --- a/settings.py +++ b/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 = '' + DEFAULT_LANG = 'en' +I18N_SUBSITES = { +'fr': { +}, +} + SITENAME = 'rwx.work' AUTHOR = 'mspe' TIMEZONE = 'UTC' @@ -8,7 +22,6 @@ DEFAULT_METADATA = { } PATH = 'in' -THEME = 'themes/pelican-twitchy' DELETE_OUTPUT_DIRECTORY = True OUTPUT_PATH = 'out' diff --git a/themes b/themes deleted file mode 120000 index 33f3b6f..0000000 --- a/themes +++ /dev/null @@ -1 +0,0 @@ -pelican/themes \ No newline at end of file