From eee1a0c894ebbfa8ce8221d1fefe57000558e699 Mon Sep 17 00:00:00 2001 From: "j.vondoemming" <j.vondoemming@stud.uni-goettingen.de> Date: Mon, 1 Aug 2022 23:51:31 +0200 Subject: [PATCH] use config.json in content dir instead of siteconf.json closes GAUMI-fginfo/fg-website#28 --- pelicanconf.py | 2 +- siteconf.json | 44 -------------------------------------------- 2 files changed, 1 insertion(+), 45 deletions(-) delete mode 100644 siteconf.json diff --git a/pelicanconf.py b/pelicanconf.py index 454d53a..39e4fdc 100644 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -115,6 +115,6 @@ THEME = './theme' JINJA_GLOBALS = {} with open('./lang.json') as json_file: JINJA_GLOBALS['l'] = json.load(json_file) -with open('./siteconf.json') as json_file: +with open(PATH + '/config.json') as json_file: JINJA_GLOBALS['sc'] = json.load(json_file) diff --git a/siteconf.json b/siteconf.json deleted file mode 100644 index 9698884..0000000 --- a/siteconf.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "categories": { - "event": {"de": "Veranstaltungen","color": "hsl(345, 86%, 56%)" }, - "studium":{"de": "Studium", "color": "hsl( 44, 87%, 50%)" }, - "fachgruppe":{"de": "Fachgruppe", "color": "hsl(185, 94%, 34%)" }, - "engage": {"de": "Engagier Dich!", "color": "hsl(157, 77%, 37%)" }, - "raeume": {"de": "Räumlichkeiten", "color": "hsl(294, 62%, 39%)" }, - "misc": {"de": "Sonstiges", "color": "hsl(289, 43%, 56%)" }, - "pages": {"de": "Sonstiges", "color": "hsl(289, 43%, 56%)" } - }, - "menuitems": [ - { "category": "event" }, - { "category": "studium" }, - { "category": "fachgruppe" }, - { "slug": "ophase" }, - { "category": "engage" }, - { "category": "raeume" } - ], - "startpage": [ - { - "type": "custom", - "content": [ - {"color": "hsl(345, 86%, 56%)", "de": "sIT 2022", "url": "https://cs.ugoe.de/sit"}, - {"color": "hsl(157, 77%, 37%)", "de": "Programmiersprachen Vortragsreihe", "url": "https://prog-langs.pages.gwdg.de/schedule/"}, - {"color": "hsl(345, 86%, 56%)", "de": "Mach mit bei der O-Phase 2022!", "url": "https://s.gwdg.de/rhAntJ"}, - {"color": "hsl(345, 86%, 56%)", "de": "Test", "url": "https://asta.uni-goettingen.de"} - ], - "title": { "de": "Aktuelles / Neues" }, - "id": "news" - }, - { - "type": "iframe", - "url": "https://cloud.asta.uni-goettingen.de/apps/calendar/embed/g8psWpbfafNM6Rpo", - "title": { "de": "Kalender" }, - "id": "calendar" - }, - { - "type": "category", - "category": "engage", - "num": 5, - "id": "engage" - } - ] -} -- GitLab