Browse Source

Update on images

redesign
Anxhelo Lushka 7 years ago
committed by GitHub
parent
commit
d283d6b944
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 14
      blog/index.html

14
blog/index.html

@ -11,14 +11,7 @@ section_id: blog
{% if mod == 1 %}
<div class="post alt">
{% if post.images %}
{% if post.images.size > 1 %}
<a href="{{ post.url | replace:'.html','' }}" class='two-images'>
<img src="{{site.url}}/{{post.images[0]}}" alt="post" class="left-image">
<img src="{{site.url}}/{{post.images[1]}}" alt="post" class="right-image">
</a>
{% else %}
<a href="{{ post.url | replace:'.html','' }}"><img src="{{site.url}}/{{post.images[0]}}" alt="post"></a>
{% endif %}
{% endif %}
<div class="post-content">
<h3><a href="{{ post.url | replace:'.html','' }}">{{post.title}}</a></h3>
@ -49,14 +42,7 @@ section_id: blog
{% if mod == 0 %}
<div class="post alt">
{% if post.images %}
{% if post.images.size > 1 %}
<a href="{{ post.url | replace:'.html','' }}" class='two-images'>
<img src="{{site.url}}/{{post.images[0]}}" alt="post" class="left-image">
<img src="{{site.url}}/{{post.images[1]}}" alt="post" class="right-image">
</a>
{% else %}
<a href="{{ post.url | replace:'.html','' }}"><img src="{{site.url}}/{{post.images[0]}}" alt="post"></a>
{% endif %}
{% endif %}
<div class="post-content">
<h3><a href="{{ post.url | replace:'.html','' }}">{{post.title}}</a></h3>

Loading…
Cancel
Save