mgaitan / waliki

A wiki engine powered by Django and Git
http://waliki.pythonanywhere.com
BSD 3-Clause "New" or "Revised" License
309 stars 56 forks source link

[documentation] extending templates #152

Open luzik opened 6 years ago

luzik commented 6 years ago

Consider adding information how to extend waliki templates in custom projects:

In project templates directory create waliki/ and place base.html in it (ex. path: some_app/templates/waliki/base.html

base.html can contain

{% extends "site_base.html" %}
{% block navbar %}{% include "_layouts/menu.html" with site="wiki" %}{% endblock %}

It can be useful for newbies

mgaitan commented 6 years ago

could you send a PR? I'll be eager to merget it.

luzik commented 6 years ago

sorry - I'm to busy/lazy for this :-)