diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 774e3c17306b09270da85dc43cbbd3d499383fbf..97e27c3043d4b729ee4de4148860aa3d39083816 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -12,7 +12,7 @@ site: before_script: - apt-get update && apt-get install -y --no-install-recommends python3-pip python3 make git wget software-properties-common - wget -O pandoc.deb https://github.com/jgm/pandoc/releases/download/2.18/pandoc-2.18-1-amd64.deb && dpkg -i pandoc.deb && rm --interactive=never pandoc.deb - - pip3 install tzlocal markdown pelican==4.7.2 pelican-pandoc-reader gitpython typogrify + - pip3 install tzlocal markdown pelican==4.7.2 pelican-pandoc-reader gitpython typogrify json - git clone https://gitlab.gwdg.de/GAUMI-fginfo/fg-website-data.git content script: - make html diff --git a/lang.json b/lang.json new file mode 100644 index 0000000000000000000000000000000000000000..0db3279e44b0dc4fb7e694b6cb10210a96ba6ba5 --- /dev/null +++ b/lang.json @@ -0,0 +1,3 @@ +{ + +} diff --git a/pelicanconf.py b/pelicanconf.py index 19abb512fce67c6909163b484d38558facbdd53a..00a31c6ece4bc0487a2809aa4022d2d312938448 100644 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -1,3 +1,5 @@ +import json + AUTHOR = 'Fachgruppe Informatik' SITENAME = 'Fachgruppe Informatik' SITEURL = '' @@ -119,4 +121,7 @@ PLUGIN_PATHS = ['./pelican-plugins'] PLUGINS = ['filetime_from_git'] THEME = './theme' +JINJA_GLOBALS = {} +with open('./lang.json') as lang_json_file: + JINJA_GLOBALS['l'] = json.load(lang_json_file)