1
Fork 0

fix image display on category pages

This commit is contained in:
Jake Howard 2016-08-28 16:36:16 +01:00
parent 211e7b9fbd
commit 67c8738f72
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 18 additions and 8 deletions

View file

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

View file

@ -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-left">
<a href="/{{ article.url }}">
<img class="media-object" src="{{ article.image }}">
</a>
</div>
{% endif %}
<div class="media category">
<div class="media-left">
{% 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>