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 {
|
||||
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="row no-gutter">
|
||||
{% for article in articles|sort(attribute="title") %}
|
||||
<div class="media categories">
|
||||
{% if article.image %}
|
||||
<div class="media category">
|
||||
<div class="media-left">
|
||||
<a href="/{{ article.url }}">
|
||||
<img class="media-object" src="{{ article.image }}">
|
||||
</a>
|
||||
</div>
|
||||
{% if article.image %}
|
||||
<div class="image" data-image="{{ article.image }}"></div>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="media-body">
|
||||
<a href="/{{ article.url }}">
|
||||
<h4 class="media-heading">{{ article.title }}</h4>
|
||||
|
|
Reference in a new issue