From 9d504491843254de67b8654923f17e3a8fc417f7 Mon Sep 17 00:00:00 2001
From: Dominik George <dominik.george@teckids.org>
Date: Thu, 19 Aug 2021 12:32:33 +0200
Subject: [PATCH] Enable po4a plugin by default

---
 pelican_theme_teckids/pelicanconf.py | 4 +++-
 pyproject.toml                       | 3 ++-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/pelican_theme_teckids/pelicanconf.py b/pelican_theme_teckids/pelicanconf.py
index 4cb9f20..669e455 100644
--- a/pelican_theme_teckids/pelicanconf.py
+++ b/pelican_theme_teckids/pelicanconf.py
@@ -24,6 +24,8 @@ DATE_FORMATS = {
     "de": "%A, %d. %B %Y",
     "en": "%A, %Y-%m-%d",
 }
+PO4A_POST_PATTERN = PATH + "/posts/{lang}/{relpath}"
+PO4A_PAGE_PATTERN = PATH + "/pages/{lang}/{relpath}"
 
 # Feed generation is usually not desired when developing
 FEED_ALL_ATOM = None
@@ -40,7 +42,7 @@ SECONDARY_DARK = "#015ebe"
 SECONDARY_LIGHT = "#00c5fa"
 
 PLUGIN_PATHS = ["plugins"]
-PLUGINS = ["i18n_subsites", "sitemap", "summary", "jinja2content"]
+PLUGINS = ["i18n_subsites", "sitemap", "summary", "jinja2content", "po4a"]
 MARKDOWN = {
     "extension_configs": {
         "markdown.extensions.attr_list": {},
diff --git a/pyproject.toml b/pyproject.toml
index 50bc920..abeb6db 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -12,9 +12,10 @@ url = "https://edugit.org/api/v4/projects/257/packages/pypi/simple"
 secondary = true
 
 [tool.poetry.dependencies]
-python = "^3.6"
+python = "^3.6.2"
 pelican-sitemap = "^1.0.2"
 pelican-jinja2content = "^1.0.1"
+pelican-po4a = "^0.1.0"
 
 [tool.poetry.dev-dependencies]
 Jinja2 = "^3.0.1"
-- 
GitLab