Browse Source

attempt to fix missing items

redesign
Anxhelo Lushka 7 years ago
parent
commit
30bb71dab2
  1. 20
      events/index.html

20
events/index.html

@ -4,13 +4,13 @@ section_id: events
title: Events title: Events
--- ---
{% for event in paginator.events %} {% for post in paginator.events %}
<div class="row"> <div class="row">
<div class="large-12 columns table" style="border-bottom: 3px solid aliceblue;"> <div class="large-12 columns table" style="border-bottom: 3px solid aliceblue;">
{% assign mod = forloop.index | modulo: 1 %} {% assign mod = forloop.index | modulo: 1 %}
{% if mod == 0 %} {% if mod == 0 %}
<div class="large-1 blog centered-text columns"> <div class="large-1 blog centered-text columns">
{% if events.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>
@ -21,24 +21,24 @@ title: Events
</span> </span>
/ /
{% endif %} {% endif %}
<h1 class="blogdate"><a href="{{ post.url | replace:'.html','' }}">{{ event.date | date: "%d" }}</h1> <h1 class="blogdate"><a href="{{ post.url | replace:'.html','' }}">{{ post.date | date: "%d" }}</h1>
<p id="post-month">{{ event.date | date: "%B %Y" }}</p></a> <p id="post-month">{{ post.date | date: "%B %Y" }}</p></a>
</div> </div>
<div class="large-8 columns bottom-blog"> <div class="large-8 columns bottom-blog">
<div class="post-content blog"> <div class="post-content blog">
<h3 id="blog-title" class="blog"><a href="{{ post.url | replace:'.html','' }}">{{event.title}}</a></h3> <h3 id="blog-title" class="blog"><a href="{{ post.url | replace:'.html','' }}">{{post.title}}</a></h3>
<p>{{event.excerpt}}</p> <p>{{post.excerpt}}</p>
<div class="tags"> <div class="tags">
{% for tag in event.tags %} {% for tag in post.tags %}
<a href="{{ site.baseurl }}/tags/#{{tag | slugify }}">{{ tag }}</a> <a href="{{ site.baseurl }}/tags/#{{tag | slugify }}">{{ tag }}</a>
{% endfor %} {% endfor %}
</div> </div>
<p><a href="{{ event.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 class="large-3 columns blog middle-blog" style="margin-bottom: 30px;"> <div class="large-3 columns blog middle-blog" style="margin-bottom: 30px;">
{% if event.images %} {% if post.images %}
<a href="{{ event.url | replace:'.html','' }}"><img style="display: block; margin: auto;" src="{{site.url}}/{{event.images[0]}}" alt="post"></a> <a href="{{ post.url | replace:'.html','' }}"><img style="display: block; margin: auto;" src="{{site.url}}/{{post.images[0]}}" alt="post"></a>
{% endif %} {% endif %}
</div> </div>
</div> </div>

Loading…
Cancel
Save