Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (14 sloc) 620 Bytes

Static pages

GBI-Server is not a CMS, but you can add content as static files (e.g. for terms of use, etc). You need to configure STATIC_PAGES_DIR to point to a directory with HTML files.

The URL /page/<lang>/<name> will return the file STATIC_PAGES_DIR/<lang>/<name>.

The files will be rendered as a Jinja template and you can inherit from the base template:

{% extends "base.html" %}

{% block title %} Title {% endblock %}

{% block content_head %}<h1> Title </h1>{% endblock %}

{% block content %}

<div class="row">

{% endblock %}
Something went wrong with that request. Please try again.