Category description
This commit is contained in:
parent
7383b8e556
commit
45fa567a0a
2 changed files with 22 additions and 1 deletions
|
@ -35,6 +35,15 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% for entry in entries %}
|
{% for entry in entries %}
|
||||||
{% entry_url entry blog_page as post_url %}
|
{% 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">
|
<article class="box page-content blog_grid">
|
||||||
<section>
|
<section>
|
||||||
{% if entry.header_image %}
|
{% if entry.header_image %}
|
||||||
|
|
|
@ -60,7 +60,19 @@ $slider-nav: 200px;
|
||||||
.blog-page section { padding: 0; }
|
.blog-page section { padding: 0; }
|
||||||
.blog-page .blog-tags ul { padding: 0; }
|
.blog-page .blog-tags ul { padding: 0; }
|
||||||
.blog-page ul.sidebar { background: transparent; }
|
.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 {
|
.blog-page .social-item {
|
||||||
font-size: 70%;
|
font-size: 70%;
|
||||||
background: #2643A9 !important;
|
background: #2643A9 !important;
|
||||||
|
|
Loading…
Reference in a new issue