diff --git a/publichealth/home/templates/home/article_index_page.html b/publichealth/home/templates/home/article_index_page.html index d91b517..5770126 100644 --- a/publichealth/home/templates/home/article_index_page.html +++ b/publichealth/home/templates/home/article_index_page.html @@ -7,7 +7,7 @@ {% if articles|length is 1 %} -
+
{% for page in articles %} {% include 'home/page_content.html' %} @@ -17,7 +17,7 @@ {% else %} -
+

{{ page.trans_title }}

{{ page.trans_intro|richtext }}

diff --git a/publichealth/home/templates/home/article_page.html b/publichealth/home/templates/home/article_page.html index 7c38f31..71336e8 100644 --- a/publichealth/home/templates/home/article_page.html +++ b/publichealth/home/templates/home/article_page.html @@ -4,7 +4,7 @@ {% block body_class %}template-{{ self.get_verbose_name|slugify }}{% endblock %} {% block content %} -
+
{% include 'home/page_content.html' %} diff --git a/publichealth/home/templates/home/page_content.html b/publichealth/home/templates/home/page_content.html index a646ed5..db2dd41 100644 --- a/publichealth/home/templates/home/page_content.html +++ b/publichealth/home/templates/home/page_content.html @@ -8,7 +8,7 @@

{{ page.trans_title }}

-

{{ page.trans_intro|richtext }}

+
{{ page.trans_intro|richtext }}
{% if page.date %}

{{ page.date }}

diff --git a/publichealth/static/css/modules/_articles.scss b/publichealth/static/css/modules/_articles.scss index 22459f3..5540927 100644 --- a/publichealth/static/css/modules/_articles.scss +++ b/publichealth/static/css/modules/_articles.scss @@ -26,11 +26,15 @@ section { .article-body > div { clear: both; } - .infoblocks article:nth-child(3n+0) { clear: both; } +// Special article layout +.article-page .lead { + h2,h3,h4,h5 { text-align: center; } +} + // Responsive image/video classes .rich-text img { max-width: 100%;