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,15 +11,8 @@ section_id: blog
{% if mod == 1 %} {% if mod == 1 %}
<div class="post alt"> <div class="post alt">
{% if post.images %} {% 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> <a href="{{ post.url | replace:'.html','' }}"><img src="{{site.url}}/{{post.images[0]}}" alt="post"></a>
{% endif %} {% endif %}
{% endif %}
<div class="post-content"> <div class="post-content">
<h3><a href="{{ post.url | replace:'.html','' }}">{{post.title}}</a></h3> <h3><a href="{{ post.url | replace:'.html','' }}">{{post.title}}</a></h3>
<p class='info'> <p class='info'>
@ -49,15 +42,8 @@ section_id: blog
{% if mod == 0 %} {% if mod == 0 %}
<div class="post alt"> <div class="post alt">
{% if post.images %} {% 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> <a href="{{ post.url | replace:'.html','' }}"><img src="{{site.url}}/{{post.images[0]}}" alt="post"></a>
{% endif %} {% endif %}
{% endif %}
<div class="post-content"> <div class="post-content">
<h3><a href="{{ post.url | replace:'.html','' }}">{{post.title}}</a></h3> <h3><a href="{{ post.url | replace:'.html','' }}">{{post.title}}</a></h3>
<p class='info'> <p class='info'>

Loading…
Cancel
Save