From 3f43ccdc4e5adc836291416b116fc5883ec36fa4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophile=20Bastian?= Date: Fri, 22 Sep 2017 18:12:53 +0200 Subject: [PATCH] Use SiteConfiguration's text for quasi-static pages --- mainsite/templates/mainsite/homepage.html | 6 +++++- mainsite/templates/mainsite/write_article.html | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/mainsite/templates/mainsite/homepage.html b/mainsite/templates/mainsite/homepage.html index 93cf751..3846231 100644 --- a/mainsite/templates/mainsite/homepage.html +++ b/mainsite/templates/mainsite/homepage.html @@ -1,5 +1,9 @@ {% extends "base.html" %} +{% load solo_tags %} {% block content %} -

Imma website!

+{% get_solo 'mainsite.SiteConfiguration' as site_config %} + +{{ site_config.homepageText | safe }} + {% endblock content %} diff --git a/mainsite/templates/mainsite/write_article.html b/mainsite/templates/mainsite/write_article.html index 990e027..c5299ab 100644 --- a/mainsite/templates/mainsite/write_article.html +++ b/mainsite/templates/mainsite/write_article.html @@ -1,5 +1,9 @@ {% extends "base.html" %} +{% load solo_tags %} {% block content %} -

Plz send articlez!

+{% get_solo 'mainsite.SiteConfiguration' as site_config %} + +{{ site_config.writearticleText | safe }} + {% endblock content %}