fix image display on category pages
This commit is contained in:
parent
211e7b9fbd
commit
67c8738f72
2 changed files with 18 additions and 8 deletions
|
@ -87,3 +87,15 @@ p a {
|
||||||
.highlight.ansi-up {
|
.highlight.ansi-up {
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.media.category {
|
||||||
|
.media-left {
|
||||||
|
min-width: 100px;
|
||||||
|
height: 100px;
|
||||||
|
|
||||||
|
.image {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -31,14 +31,12 @@
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="row no-gutter">
|
<div class="row no-gutter">
|
||||||
{% for article in articles|sort(attribute="title") %}
|
{% for article in articles|sort(attribute="title") %}
|
||||||
<div class="media categories">
|
<div class="media category">
|
||||||
{% if article.image %}
|
<div class="media-left">
|
||||||
<div class="media-left">
|
{% if article.image %}
|
||||||
<a href="/{{ article.url }}">
|
<div class="image" data-image="{{ article.image }}"></div>
|
||||||
<img class="media-object" src="{{ article.image }}">
|
{% endif %}
|
||||||
</a>
|
</div>
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
<div class="media-body">
|
<div class="media-body">
|
||||||
<a href="/{{ article.url }}">
|
<a href="/{{ article.url }}">
|
||||||
<h4 class="media-heading">{{ article.title }}</h4>
|
<h4 class="media-heading">{{ article.title }}</h4>
|
||||||
|
|
Reference in a new issue