diff --git a/config.toml b/config.toml index 6e1c4de..2a67c6b 100644 --- a/config.toml +++ b/config.toml @@ -1,5 +1,5 @@ # The URL the site will be built for -base_url = "https://ktt-ol.de" +base_url = "/" default_language = "de" title = "Kreativität trifft Technik e.V." diff --git a/templates/ifs/ifs-all.html b/templates/ifs/ifs-all.html index 5df0699..34c5939 100644 --- a/templates/ifs/ifs-all.html +++ b/templates/ifs/ifs-all.html @@ -1,14 +1,17 @@ {% extends "base.html" %} {% block main %} -{% set base_path = paginator.base_url | trim_start_matches(pat=config.base_url) %} + +{% set base_path = paginator.base_url %} + {% if paginator.previous %} -{% set previous = paginator.previous | trim_start_matches(pat=config.base_url) %} +{% set previous = paginator.previous %} {% else %} {% set previous = "" %} {% endif %} + {% if paginator.next %} -{% set next = paginator.next | trim_start_matches(pat=config.base_url) %} +{% set next = paginator.next %} {% else %} {% set next = "" %} {% endif %}