diff --git a/publichealth/home/templates/puput/blog_page.html b/publichealth/home/templates/puput/blog_page.html index c18dd6b..a7cfd8a 100644 --- a/publichealth/home/templates/puput/blog_page.html +++ b/publichealth/home/templates/puput/blog_page.html @@ -35,6 +35,15 @@ {% endif %} {% for entry in entries %} {% entry_url entry blog_page as post_url %} + {% if forloop.counter == 1 %} + {% for category in entry.categories.all %} + {% if search_term|slugify == category.name|slugify %} +
+ {{ category.description }} +
+ {% endif %} + {% endfor %} + {% endif %}
{% if entry.header_image %} diff --git a/publichealth/static/css/main.scss b/publichealth/static/css/main.scss index d98881a..990689d 100644 --- a/publichealth/static/css/main.scss +++ b/publichealth/static/css/main.scss @@ -60,7 +60,19 @@ $slider-nav: 200px; .blog-page section { padding: 0; } .blog-page .blog-tags ul { padding: 0; } .blog-page ul.sidebar { background: transparent; } -.blog-page .searchTerm { text-transform: uppercase; } +.blog-page .searchTerm { + text-transform: uppercase; + font-weight: bold; + background: #fff; + margin-bottom: 0px; +} +.blog-page .searchDescription { + background: #fff; + margin-bottom: 20px; + padding: 0 20px 20px; + line-height: normal; + color: #555; +} .blog-page .social-item { font-size: 70%; background: #2643A9 !important;