formating
This commit is contained in:
parent
3a73659f44
commit
2f55324209
2 changed files with 14 additions and 17 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
<h3>Förflutna events</h3>
|
<h3>Förflutna events</h3>
|
||||||
|
{% capture now -%}
|
||||||
{% capture now -%}{{ site.time | date: '%s' }}{%- endcapture %}
|
{{ site.time | date: '%s' }}
|
||||||
|
{%- endcapture %}
|
||||||
{% for event in site.events %}
|
{% for event in site.events %}
|
||||||
|
|
||||||
{% capture endtime -%}
|
{% capture endtime -%}
|
||||||
|
|
@ -8,16 +9,13 @@
|
||||||
{%- endcapture %}
|
{%- endcapture %}
|
||||||
|
|
||||||
{% if now >= endtime %}
|
{% if now >= endtime %}
|
||||||
|
<div>
|
||||||
<a href="{{ event.url }}"><img src="{{ event.image }}" width="30%" /></a>
|
<a href="{{ event.url }}"><img src="{{ event.image }}" width="30%" /></a>
|
||||||
<h4>{{ event.event_data.start_datetime | date: '%Y-%m-%d' }}<br />
|
<h4>{{ event.event_data.start_datetime | date: '%Y-%m-%d' }}<br />
|
||||||
<a href="{{ event.url }}">{{ event.title }}</a>
|
<a href="{{ event.url }}">{{ event.title }}</a>
|
||||||
</h4>
|
</h4>
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
|
@ -5,11 +5,10 @@ layout: default
|
||||||
---
|
---
|
||||||
<!-- begin /index.html -->
|
<!-- begin /index.html -->
|
||||||
<div class="column">
|
<div class="column">
|
||||||
<h3>{{ page.title }} - {{ site.title }}</h3>
|
<h1>{{ page.title }} - {{ site.title }}</h1>
|
||||||
<p>{{ site.description }}</p>
|
<p>{{ site.description }}</p>
|
||||||
<h4><a href="/about/" class="cta" alt="About Momangen">Om oss</a></h4>
|
<h4><a href="/about/" class="cta" alt="About Momangen">Om oss</a></h4>
|
||||||
{% include hittahit.html %}
|
{% include hittahit.html %}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="column">
|
<div class="column">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue