Browse Source

Total revert

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

66
blog/index.html

@ -4,12 +4,18 @@ title: Blog
section_id: blog section_id: blog
--- ---
<div class="large-12 columns">
<div class="large-6 columns">
{% for post in paginator.posts %} {% for post in paginator.posts %}
{% assign mod = forloop.index | modulo: 2 %} {% assign mod = forloop.index | modulo: 2 %}
{% if mod == 1 %} {% if mod == 1 %}
<div class="post alt">
<div class="large-1 blog centered-text columns"> {% if post.images %}
<a href="{{ post.url | replace:'.html','' }}"><img src="{{site.url}}/{{post.images[0]}}" alt="post"></a>
{% endif %}
<div class="post-content">
<h3><a href="{{ post.url | replace:'.html','' }}">{{post.title}}</a></h3>
<p class='info'>
{% if post.categories != empty %} {% if post.categories != empty %}
<span> <span>
{% for cat in post.categories %} {% for cat in post.categories %}
@ -21,40 +27,30 @@ section_id: blog
</span> </span>
/ /
{% endif %} {% endif %}
<h1 class="blogdate">{{ post.date | date: "%d" }}</h1> <span>{{ post.date | date: "%B %d, %Y" }}</span>
<p>{{ post.date | date: "%B %Y" }}</p> </p>
</div>
<div class="large-8 columns">
<div class="post alt">
<div class="post-content">
<h3><a href="{{ post.url | replace:'.html','' }}">{{post.title}}</a></h3>
<p>{{post.excerpt}}</p> <p>{{post.excerpt}}</p>
<p><a href="{{ post.url | replace:'.html','' }}" class="button tiny blue simple boxed">Read more</a></p> <p><a href="{{ post.url | replace:'.html','' }}" class="button tiny blue simple boxed">Read more</a></p>
</div> </div>
</div> </div>
</div>
<div class="large-3 columns blog">
<div class="post-alt">
{% if post.images %}
<a href="{{ post.url | replace:'.html','' }}"><img src="{{site.url}}/{{post.images[0]}}" alt="post"></a>
{% endif %}
</div>
{% endif %} {% endif %}
{% endfor %} {% endfor %}
</div> </div>
<div class="large-6 columns">
<div class="large-12 columns">
{% for post in paginator.posts %} {% for post in paginator.posts %}
{% assign mod = forloop.index | modulo: 2 %} {% assign mod = forloop.index | modulo: 2 %}
{% if mod == 1 %} {% if mod == 0 %}
<div class="post alt">
<div class="large-1 blog centered-text columns"> {% if post.images %}
<a href="{{ post.url | replace:'.html','' }}"><img src="{{site.url}}/{{post.images[0]}}" alt="post"></a>
{% endif %}
<div class="post-content">
<h3><a href="{{ post.url | replace:'.html','' }}">{{post.title}}</a></h3>
<p class='info'>
{% if post.categories != empty %} {% if post.categories != empty %}
<span> <span>
{% for cat in post.categories %} {% for cat in post.categories %}
<a href="#">{{cat | capitalize }}</a> <a href="#">{{cat | capitalize}}</a>
{% unless forloop.last %} {% unless forloop.last %}
, ,
{% endunless %} {% endunless %}
@ -62,28 +58,12 @@ section_id: blog
</span> </span>
/ /
{% endif %} {% endif %}
<h1 class="blogdate">{{ post.date | date: "%d" }}</h1> <span>{{ post.date | date: "%B %d, %Y" }}</span>
<p>{{ post.date | date: "%B %Y" }}</p> </p>
</div>
<div class="large-8 columns">
<div class="post alt">
<div class="post-content">
<h3><a href="{{ post.url | replace:'.html','' }}">{{post.title}}</a></h3>
<p>{{post.excerpt}}</p> <p>{{post.excerpt}}</p>
<p><a href="{{ post.url | replace:'.html','' }}" class="button tiny blue simple boxed">Read more</a></p> <p><a href="{{ post.url | replace:'.html','' }}" class="button tiny blue simple boxed">Read more</a></p>
</div> </div>
</div> </div>
</div>
<div class="large-3 columns blog">
<div class="post-alt">
{% if post.images %}
<a href="{{ post.url | replace:'.html','' }}"><img src="{{site.url}}/{{post.images[0]}}" alt="post"></a>
{% endif %}
</div>
{% endif %} {% endif %}
{% endfor %} {% endfor %}
</div> </div>
</div>

Loading…
Cancel
Save