Skip to content

Commit

Permalink
Modify base url
Browse files Browse the repository at this point in the history
  • Loading branch information
lordiii committed Mar 16, 2024
1 parent a8a8999 commit 2d5e51d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion config.toml
Original file line number Diff line number Diff line change
@@ -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."
Expand Down
9 changes: 6 additions & 3 deletions templates/ifs/ifs-all.html
Original file line number Diff line number Diff line change
@@ -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 %}
Expand Down

0 comments on commit 2d5e51d

Please sign in to comment.