Use context processor to include site settings in templates

This commit is contained in:
Mouse Reeve
2020-12-11 12:07:37 -08:00
parent 3aba3c8052
commit b33ea40da2
9 changed files with 21 additions and 18 deletions

View File

@ -36,7 +36,7 @@
</form>
</div>
<div class="box has-background-primary-light">
{% if site_settings.allow_registration %}
{% if site.allow_registration %}
<h2 class="title">Create an Account</h2>
<form name="register" method="post" action="/user-register">
{% include 'snippets/register_form.html' %}
@ -50,7 +50,7 @@
<div class="column">
<div class="block">
{% include 'snippets/about.html' with site_settings=site_settings %}
{% include 'snippets/about.html' %}
<p class="block">
<a href="/about/">More about this site</a>