Category description

This commit is contained in:
Oleg Lavrovsky 2019-09-09 18:10:30 +02:00
parent 7383b8e556
commit 45fa567a0a
2 changed files with 22 additions and 1 deletions

View file

@ -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 %}
<div class="searchDescription">
{{ category.description }}
</div>
{% endif %}
{% endfor %}
{% endif %}
<article class="box page-content blog_grid">
<section>
{% if entry.header_image %}

View file

@ -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;