diff --git a/mainsite/migrations/0007_siteconfiguration_specialpublisdescr.py b/mainsite/migrations/0007_siteconfiguration_specialpublisdescr.py new file mode 100644 index 0000000..4944d88 --- /dev/null +++ b/mainsite/migrations/0007_siteconfiguration_specialpublisdescr.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11.5 on 2017-09-23 16:54 +from __future__ import unicode_literals + +from django.db import migrations +import markdownx.models + + +class Migration(migrations.Migration): + + dependencies = [ + ('mainsite', '0006_auto_20170923_1847'), + ] + + operations = [ + migrations.AddField( + model_name='siteconfiguration', + name='specialPublisDescr', + field=markdownx.models.MarkdownxField(default='', verbose_name='Texte de la page des publications spéciales (Markdown)'), + preserve_default=False, + ), + ] diff --git a/mainsite/models.py b/mainsite/models.py index c1bb545..fd9fb05 100644 --- a/mainsite/models.py +++ b/mainsite/models.py @@ -15,6 +15,8 @@ class SiteConfiguration(SingletonModel): email = CharField("Adresse de contact du BOcal", max_length=128, help_text="Attention au spam…") + specialPublisDescr = MarkdownxField("Texte de la page des " + "publications spéciales (Markdown)") def __str__(self): return "Configuration du site" diff --git a/mainsite/static/css/site-base.css b/mainsite/static/css/site-base.css index 5a03c6c..0b57d81 100644 --- a/mainsite/static/css/site-base.css +++ b/mainsite/static/css/site-base.css @@ -112,3 +112,12 @@ body { .main .page-header { margin-top: 0; } + +.page-title { + text-align: center; + margin-bottom: 20px; +} + +.intro-text { + margin-bottom: 20px; +} diff --git a/mainsite/templates/mainsite/publications_list_view.html b/mainsite/templates/mainsite/publications_list_view.html index 956fe88..2977bb7 100644 --- a/mainsite/templates/mainsite/publications_list_view.html +++ b/mainsite/templates/mainsite/publications_list_view.html @@ -3,10 +3,18 @@ {% block content %} -
{{ intro_text | markdownify }}
+